/*===== VOLUNTEER FORM SECTION =====*/
.volunteer-form {
    padding: 2rem 0 4rem;
}

.volunteer-form__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.volunteer-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.volunteer-subtitle {
    font-size: 1.2rem;
    color: var(--first-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.volunteer-note {
    color: #666;
    font-size: 1rem;
}

.volunteer-form__content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-number {
    width: 40px;
    height: 40px;
    background: var(--first-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.section-header .section-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
    text-align: left;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--first-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--first-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox and Radio Styles */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom,
.radio-custom {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-custom::after,
.radio-custom::after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkbox-custom {
    background-color: var(--first-color);
    border-color: var(--first-color);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-custom {
    border-radius: 50%;
}

.radio-label input:checked ~ .radio-custom {
    background-color: var(--first-color);
    border-color: var(--first-color);
}

.radio-label input:checked ~ .radio-custom::after {
    display: block;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-text,
.radio-text {
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
}

.checkbox-label:hover .checkbox-custom,
.radio-label:hover .radio-custom {
    border-color: var(--first-color);
}

/* Agreement Checkbox */
.checkbox-label.agreement {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 0;
}

.checkbox-label.agreement .checkbox-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding-top: 2rem;
}

.button--submit {
    background: linear-gradient(135deg, var(--first-color), #390000);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.button--submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.button--submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.button--success {
    background: var(--first-color);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.button--success:hover {
    background: #390000;
    transform: translateY(-2px);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .volunteer-form__content {
        padding: 1.5rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .section-header .section-title {
        font-size: 1.2rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .checkbox-label,
    .radio-label {
        padding-left: 1.75rem;
    }
    
    .checkbox-label.agreement {
        padding: 0.75rem;
    }
    
    .success-message {
        padding: 2rem 1rem;
    }
    
    .success-message h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .volunteer-form {
        padding: 1rem 0 3rem;
    }
    
    .volunteer-form__content {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .volunteer-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header .section-title {
        font-size: 1.1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .button--submit {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Form Validation Styles */
.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-input.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.required {
    color: #dc3545;
}
