/* Registration Form Styles */
.registration-form-section {
    padding: 80px 0;
    background: #d5d5d5;
    min-height: 100vh;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #212121 0%, #2c3e50 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #7fbfb0, #88ccc0);
    border-radius: 2px;
}

.form-header .form-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #7fbfb0;
}

.form-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* Form Sections */
.registration-form {
    padding: 50px 40px;
    background: white;
}

.form-section {
    margin-bottom: 45px;
}

.form-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #212121;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #7fbfb0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.form-section h4 i {
    color: #7fbfb0;
    font-size: 1.2rem;
}

.section-note {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #7fbfb0;
    border-radius: 4px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #212121;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-family: 'Times New Roman', serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7fbfb0;
    background: white;
    box-shadow: 0 0 0 4px rgba(127, 191, 176, 0.1);
}

/* Committee Preference Grid */
.committee-preference-grid {
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.grid-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #212121;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.grid-header > div,
.grid-row > div {
    padding: 16px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.grid-header > div:last-child,
.grid-row > div:last-child {
    border-right: none;
}

.grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.2s ease;
}

.grid-row:hover {
    background-color: #f8f9fa;
}

.grid-row:last-child {
    border-bottom: none;
}

.committee-name {
    font-weight: 600;
    color: #212121;
    font-size: 0.95rem;
}

.preference-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preference-col input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: #7fbfb0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.preference-col input[type="radio"]:hover {
    transform: scale(1.1);
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #212121;
    font-size: 1rem;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #7fbfb0;
    cursor: pointer;
}

/* Radio Button Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #212121;
    font-size: 1rem;
    padding: 14px 16px;
    background: #fafbfc;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0;
}

.radio-option:hover {
    background: #f8f9fa;
    border-color: #7fbfb0;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #7fbfb0;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + span {
    color: #7fbfb0;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    background: #f0f9f7;
    border-color: #7fbfb0;
    box-shadow: 0 2px 8px rgba(127, 191, 176, 0.15);
}

.radio-option span {
    transition: color 0.3s ease;
}


/* Submit Button */
.form-submit {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
}

.submit-btn {
    background: linear-gradient(135deg, #7fbfb0 0%, #88ccc0 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(127, 191, 176, 0.3);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(127, 191, 176, 0.4);
    background: linear-gradient(135deg, #88ccc0 0%, #7fbfb0 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1rem;
}

/* Form Messages */
.error-message {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-left: 4px solid #f56565;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.success-message {
    background: white;
    border: 2px solid #7fbfb0;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(127, 191, 176, 0.15);
}

.success-message i {
    font-size: 4rem;
    color: #7fbfb0;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #212121;
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
}

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

.error-message-banner {
    background: #f56565;
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.error-message-banner .message-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message-banner button {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.error-message-banner button:hover {
    opacity: 1;
}

.has-error input,
.has-error select {
    border-color: #fc8181 !important;
    box-shadow: 0 0 0 4px rgba(252, 129, 129, 0.1) !important;
    background: #fff5f5 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-form-section {
        padding: 40px 0;
    }
    
    .form-wrapper {
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .grid-header,
    .grid-row {
        grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr;
        font-size: 0.8rem;
    }
    
    .grid-header > div,
    .grid-row > div {
        padding: 10px 8px;
    }
    
    .committee-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .grid-header,
    .grid-row {
        grid-template-columns: 1.5fr 0.6fr 0.6fr 0.6fr;
        font-size: 0.7rem;
    }
    
    .preference-col input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}