/**
 * Church Signup Form - Frontend Styles
 */

.csf-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

.csf-form-container * {
    box-sizing: border-box;
}

/* Title and Subtitle */
.csf-title {
    text-align: center;
    color: #385e6d;
    margin-bottom: 10px;
    font-size: 2em;
}

.csf-subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 30px;
}

/* Messages */
.csf-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
}

.csf-message.csf-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.csf-message.csf-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.csf-message.csf-hidden {
    display: none;
}

/* Section Titles */
.csf-section-title {
    color: #385e6d;
    font-size: 1.2em;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dae0e3;
    font-weight: 600;
}

.csf-section-title:first-of-type {
    margin-top: 0;
}

/* Form Groups */
.csf-form-group {
    margin-bottom: 20px;
}

.csf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.csf-form-group label.csf-required::after {
    content: " *";
    color: #e94560;
}

/* Text Inputs */
.csf-form-container input[type="text"],
.csf-form-container input[type="email"],
.csf-form-container input[type="tel"],
.csf-form-container input[type="number"],
.csf-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dae0e3;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 16px;
    transition: border-color 0.3s;
}

.csf-form-container input:focus,
.csf-form-container textarea:focus {
    outline: none;
    border-color: #385e6d;
}

.csf-form-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* File Input */
.csf-file-input {
    width: 100%;
    padding: 10px;
    border: none ! important;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
}

.csf-file-input::file-selector-button {
    background-color: #32373c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.csf-file-input::file-selector-button:hover {
    background-color: #4a5568;
}

.csf-file-help {
    display: block;
    margin-top: 5px;
    color: #666666;
    font-size: 0.85em;
}

/* Row Layout */
.csf-row {
    display: flex;
    gap: 15px;
}

.csf-row .csf-form-group {
    flex: 1;
}

/* Radio Groups */
.csf-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.csf-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.csf-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #385e6d;
}

/* Question Text */
.csf-question-text {
    font-size: 0.95em;
    color: #333333;
}

/* Conditional Fields */
.csf-conditional-field {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f8f7;
    border-radius: 8px;
    border-left: 3px solid #385e6d;
}

.csf-conditional-field.csf-show {
    display: block;
}

/* Submit Button */
.csf-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #32373c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    XXmargin-top: 20px;
}

.csf-submit-btn:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
}

.csf-submit-btn:active {
    transform: translateY(0);
}

.csf-submit-btn:disabled {
    background-color: #999999;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 600px) {
    .csf-form-container {
        padding: 20px;
    }

    .csf-row {
        flex-direction: column;
        gap: 0;
    }

    .csf-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
