/* ====================================================================
   CSS FOR BHAVSAR KSHATRIYA COMMUNITY MEMBERSHIP APPLICATION
   ==================================================================== */

/* ====================================================================
   1. GLOBAL STYLES & CSS RESET
   ==================================================================== */

/* box-sizing already set by Bootstrap — no need for global reset */

/* ====================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ==================================================================== */

:root {
    /* Primary Colors - Aligned with main.css theme */
    --primary-color: #2E86AB;
    --secondary-color: #f8f9fa;
    --accent-color: #2E86AB;
    --hover-color: #1B3A4B;

    /* Text Colors */
    --text-color: #333;
    --light-text: #6c757d;

    /* State Colors */
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-hover: #c82333;

    /* Background Colors */
    --white: #ffffff;
    --body-bg: #f5f7fa;
    --progress-bg: #f0f0f0;

    /* Border Colors */
    --border-color: #dee2e6;

    /* Success Colors */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;

    /* Error Colors */
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;

    /* Alpha Colors (Transparency) */
    --success-alpha: rgba(40, 167, 69, 0.1);
    --success-border-alpha: rgba(40, 167, 69, 0.2);
    --error-alpha: rgba(220, 53, 69, 0.1);
    --error-border-alpha: rgba(220, 53, 69, 0.2);
    --warning-alpha: rgba(255, 193, 7, 0.1);
    --warning-border-alpha: rgba(255, 193, 7, 0.2);
    --white-alpha: rgba(255, 255, 255, 0.3);

    /* Shadow & Overlay Colors */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-subtle: rgba(0, 0, 0, 0.08);
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-darker: rgba(0, 0, 0, 0.7);

    /* Focus & Interaction */
    --focus-shadow: rgba(46, 134, 171, 0.2);
}

/* Required field asterisk styling */
.required-asterisk {
    color: var(--error-color);
    margin-left: 3px;
    font-weight: bold;
}

/* ====================================================================
   3. LOADING INDICATORS & GLOBAL LOADER
   ==================================================================== */

.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

/* ====================================================================
   4. BASE LAYOUT & TYPOGRAPHY
   ==================================================================== */

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    margin: 0;
    padding: 10px;
} */

/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ====================================================================
   5. TYPOGRAPHY STYLES
   ==================================================================== */

/* h1,
h2,
h3 {
    color: var(--primary-color);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
} */

#bhavsar-details-361 h2 {
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* ====================================================================
   6. FORM ELEMENTS & INPUT STYLES
   ==================================================================== */

#bhavsar-details-361 .form-group,
#bhavsar-details-362 .form-group {
    margin-bottom: 20px;
    position: relative;
}

#bhavsar-details-361 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#bhavsar-details-361 label .required-asterisk {
    color: var(--error-color);
    font-weight: bold;
    margin-left: 4px;
}

.sub-label {
    font-size: 0.85em;
    color: var(--light-text);
    font-weight: normal;
}

/* Validation Status Styles */
.validation-status {
    font-size: 0.85em;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.validation-status.checking {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

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

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

.validation-status.duplicate {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-weight: bold;
}

/* Input Field Styles — scoped to tab 361 */
#bhavsar-details-361 input[type="text"],
#bhavsar-details-361 input[type="date"],
#bhavsar-details-361 input[type="email"],
#bhavsar-details-361 input[type="tel"],
#bhavsar-details-361 input[type="number"],
#bhavsar-details-361 select,
#bhavsar-details-361 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-color);
}

#bhavsar-details-361 input:hover,
#bhavsar-details-361 select:hover,
#bhavsar-details-361 textarea:hover {
    border-color: #b0b0b0;
}

#bhavsar-details-361 input:focus,
#bhavsar-details-361 select:focus,
#bhavsar-details-361 textarea:focus {
    border-color: #2E86AB;
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 134, 171, 0.1);
    background-color: #ffffff;
}

/* ====================================================================
   7. FORM LAYOUT COMPONENTS
   ==================================================================== */

.name-fields {
    display: flex;
    gap: 15px;
}

.name-fields div {
    flex: 1;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Address Field Layouts */
.address-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-line {
    display: flex;
    gap: 15px;
}

.address-line input {
    flex: 1;
}

/* ====================================================================
   8. BUTTON STYLES & VARIANTS — scoped to tab 361
   ==================================================================== */

#bhavsar-details-361 .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

#bhavsar-details-361 .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#bhavsar-details-361 .btn:hover::before {
    width: 300px;
    height: 300px;
}

#bhavsar-details-361 .btn-primary {
    background: linear-gradient(135deg, #2E86AB 0%, #1B3A4B 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.4);
}

#bhavsar-details-361 .btn-primary:hover {
    background: linear-gradient(135deg, #1B3A4B 0%, #2E86AB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 134, 171, 0.5);
}

#bhavsar-details-361 .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 134, 171, 0.3);
}

#bhavsar-details-361 .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#bhavsar-details-361 .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

#bhavsar-details-361 .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

#bhavsar-details-361 .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

#bhavsar-details-361 .btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

#bhavsar-details-361 .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#bhavsar-details-361 .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#bhavsar-details-361 .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

#bhavsar-details-361 .btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* ====================================================================
   9. PROGRESS BARS & LOADING INDICATORS (Enhanced Design)
   ==================================================================== */

.progress-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E86AB 0%, #1B3A4B 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.progress-status {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.progress-status.pending {
    color: #ffc107;
}

.progress-status.verified {
    color: var(--success-color);
}

/* ====================================================================
   10. ALERT & NOTIFICATION STYLES
   ==================================================================== */

#bhavsar-details-361 .alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

#bhavsar-details-361 .alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

#bhavsar-details-361 .alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

/* ====================================================================
   11. MODAL & POPUP STYLES
   ==================================================================== */

#bhavsar-details-361 .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: 1000;
    overflow-y: auto;
}

#bhavsar-details-361 .modal-content {
    background-color: var(--white);
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 0 20px var(--shadow-medium);
    position: relative;
}

#bhavsar-details-361 .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

#bhavsar-details-361 .modal-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--light-text);
    cursor: pointer;
}

.preview-section {
    margin-bottom: 20px;
}

.preview-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.preview-label {
    flex: 0 0 150px;
    font-weight: 600;
}

.preview-value {
    flex: 1;
    color: var(--text-color);
}

.edit-btn {
    margin-left: 10px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.95em;
}

.edit-btn:hover {
    background: var(--hover-color);
}

/* File Upload Styles */
.file-upload {
    margin-top: 10px;
    margin-bottom: 10px;
}

.file-name {
    margin-left: 10px;
    font-style: italic;
    color: var(--light-text);
}

.file-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    display: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
}

.file-preview.visible {
    display: block;
}

/* OTP Verification Styles */
.otp-verification {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.verification-status {
    font-size: 0.9em;
    font-weight: 500;
}

.verification-status.success {
    color: var(--success-color);
}

.verification-status.error {
    color: var(--error-color);
}

.verification-status.info {
    color: var(--primary-color);
}

.otp-input-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.otp-input-section.hidden {
    display: none;
}

.otp-timer {
    font-size: 0.85em;
    color: var(--light-text);
    margin-left: 10px;
}

/* Section Disabled State */
.section-disabled {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.section-disabled::after {
    content: 'Complete previous steps to unlock';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* ====================================================================
   UNIFIED FORM THEME — tabs 363-370 (Volunteer, Scholarship, etc.)
   Consistent card-style form sections using the page brand palette.
   ==================================================================== */

/* Form container wrapper (volunteer-form-container, scholarship-form-container, etc.) */
.volunteer-form-container,
.scholarship-form-container,
.career-form-container,
.trust-form-container,
.sponsorship-form-container,
.donation-form-container,
.event-form-container,
.temple-donation-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* Form section cards */
.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

/* Section headers with Bootstrap icons */
.form-section h3 {
    color: var(--heading-color, #1B3A4B);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color, #2E86AB);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--accent-color, #2E86AB);
    font-size: 1.3rem;
}

/* ====================================================================
   TAB 361 UTILITY CLASSES (previously in main.css, now scoped)
   ==================================================================== */

#bhavsar-details-361 .document-checklist {
    background: rgba(46, 134, 171, 0.08);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#bhavsar-details-361 .checklist-item {
    margin-bottom: 10px;
}

#bhavsar-details-361 .family-member {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

#bhavsar-details-361 .family-member input {
    flex: 1;
}

#bhavsar-details-361 .remove-member-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#bhavsar-details-361 .remove-member-btn:hover {
    background: #c0392b;
}

#bhavsar-details-361 .declaration-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color, #2E86AB);
}

#bhavsar-details-361 .submit-btn {
    background: var(--accent-color, #2E86AB);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: 30px auto;
    transition: background 0.3s;
}

#bhavsar-details-361 .submit-btn:hover {
    opacity: 0.9;
}

#bhavsar-details-361 .submit-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

#bhavsar-details-361 .upload-btn {
    background: var(--accent-color, #2E86AB);
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#bhavsar-details-361 .upload-btn:hover {
    opacity: 0.9;
}

#bhavsar-details-361 .otp-section {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    #bhavsar-details-361 .name-fields {
        flex-direction: column;
        gap: 10px;
    }
    #bhavsar-details-361 .address-line {
        flex-direction: column;
        gap: 10px;
    }
    #bhavsar-details-361 .family-member {
        flex-direction: column;
        align-items: flex-start;
    }
    #bhavsar-details-361 .family-member input {
        width: 100%;
    }
}
