* { font-family: 'Poppins', sans-serif; }

/* Background hataya gaya — sirf padding hai */
.reg-wrapper {
    min-height: 100vh;
    padding: 40px 0;
}

.reg-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.reg-header {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    padding: 30px;
    text-align: center;
    color: white;
}
.reg-header h4 { font-weight: 700; margin: 0; font-size: 1.3rem; }
.reg-header p  { margin: 0; opacity: 0.8; font-size: 0.85rem; }

.section-title {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control, .form-select {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.input-group-text {
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px 0 0 10px;
    color: #1a5276;
}
.input-group .form-control,
.input-group .form-select { border-radius: 0 10px 10px 0; }

/* Availability check message */
.check-msg {
    font-size: 0.78rem;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 6px;
}
.check-msg.success { color: #27ae60; display: flex; }
.check-msg.error   { color: #e74c3c; display: flex; }
.check-msg.loading { color: #888;    display: flex; }

/* Spinner */
.spinner-inline {
    width: 14px; height: 14px;
    border: 2px solid #ccc;
    border-top-color: #1a5276;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline field error */
.field-error {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}
.field-error.show { display: block; }

.btn-submit {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white; border: none; border-radius: 12px;
    padding: 14px; font-size: 1rem; font-weight: 600;
    width: 100%; transition: all 0.3s; letter-spacing: 0.5px;
    cursor: pointer;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,82,118,0.4);
}

.photo-preview {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 3px solid #1a5276;
    display: none; margin: 10px auto 0;
}

.upload-area {
    border: 2px dashed #1a5276; border-radius: 12px;
    padding: 20px; text-align: center; cursor: pointer;
    transition: all 0.3s; background: #f8fbff;
}
.upload-area:hover { background: #e8f4fd; }
.upload-area i { font-size: 2rem; color: #1a5276; }

/* DOB selects */
.dob-group { display: flex; gap: 8px; }
.dob-group select { flex: 1; }

/* reCAPTCHA wrapper */
.recaptcha-wrap { display: flex; justify-content: center; margin-top: 10px; }

/* Preview Modal */
.preview-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.preview-overlay.active { display: flex; }

.preview-box {
    background: #fff;
    border-radius: 16px;
    max-width: 700px; width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.preview-box-header {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white; padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex; align-items: center; justify-content: space-between;
}
.preview-box-header h5 { margin: 0; font-weight: 700; }

.preview-body { padding: 24px; }

.preview-section-title {
    font-weight: 700; color: #1a5276;
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 6px; margin: 18px 0 10px;
}

.preview-row {
    display: flex; gap: 8px;
    font-size: 0.88rem; padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}
.preview-row .label { color: #666; min-width: 180px; font-weight: 500; }
.preview-row .value { color: #222; font-weight: 600; }

.preview-photo {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 3px solid #1a5276;
    display: block; margin: 0 auto 10px;
}

.btn-preview-submit {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white; border: none; border-radius: 10px;
    padding: 12px 30px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.3s;
}
.btn-preview-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.4);
}

.btn-preview-back {
    background: #f0f0f0; color: #333; border: none;
    border-radius: 10px; padding: 12px 30px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: all 0.3s;
}
.btn-preview-back:hover { background: #e0e0e0; }