/* ===== FORM WRAPPER ===== */
#eventForm {
    /*max-width: 520px;*/
    background: #ffffff;
    padding: 25px;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    display: flex;
    flex-direction: column;
}

/* ===== INPUTS & SELECT ===== */
#eventForm input,
#eventForm select {
    width: 100%;
    height: 52px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#eventForm input:focus,
#eventForm select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.branch-list {
    border: 1px solid #eee !important;
    z-index: auto !important;
    height: 52px !important;
    min-height: 52px !important
}

.nice-select.gender-list {
    border: 1px solid #eee !important;
    z-index: auto !important;
    height: 52px !important;
    min-height: 52px !important;

}

.gender-list span {
    line-height: 52px !important;
}


.gender-list .list {
    max-height: 500px;
    overflow: auto !important;
}

.branch-list .list {
    max-height: 500px;
    overflow: auto !important;
}

.package {
    border: 1px solid #eee !important;

}

/* ===== FEE CARD ===== */
#feeCard {
    background: #f9fafb;
    /* border: 1px solid #e3e6ea; */
    /* padding: 15px 18px; */
    border-radius: 8px;
    margin-top: 80px;
}

#feeCard h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #222;
}

#feeCard p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}

#feeCard hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

#feeCard .total {
    font-size: 18px;
    font-weight: 700;
    color: #0a7c3b;
}

/* ===== PAY BUTTON ===== */
#payNow {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

#payNow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#payNow:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    #eventForm {
        padding: 18px;
    }
}


/* Registration Modal - Updated */
.reg-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.reg-modal-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.reg-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    font-weight: bold;
    line-height: 1;
}

.reg-close:hover {
    color: #333;
}

.reg-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 36px;
    line-height: 70px;
    color: #fff;
    font-weight: bold;
}

.reg-icon.success {
    background: #28a745;
}

.reg-icon.error {
    background: #dc3545;
}

#regModalTitle {
    font-size: 24px;
    margin: 15px 0 10px;
    color: #333;
}

#regModalMessage {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0 20px;
}

#regModalBtn {
    margin-top: 20px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

#regModalBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.4);
}

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

/* Mobile responsive */
@media (max-width: 480px) {
    .reg-modal-content {
        width: 95%;
        padding: 25px 20px;
    }

    #regModalTitle {
        font-size: 20px;
    }

    #regModalMessage {
        font-size: 14px;
    }
}


/* ------------ Download Receipt-------------- */

.receipt-download-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.receipt-header {
    background:linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.receipt-header h2 {
    margin: 0;
    font-size: 28px;
    color: #fafafa;
}

.receipt-info {
    margin-bottom: 30px;
}

.contact-info {
    color: #e91e63;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.registration-link {
    text-align: center;
    font-size: 16px;
}

.registration-link a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

.registration-link a:hover {
    text-decoration: underline;
}

.search-section {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 5px;
}

.search-section label {
    display: block;
    color: #0066cc;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1 !important;
    padding: 12px 15px !important;
    border: 1px solid #959595 !important;
    border-radius: 8px !important;
    font-size: 16px;
    height: 50px !important;
}

.search-box button {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.search-box button:hover {
    background: #008fb3;
}

#receiptResult {
    margin-top: 20px;
}

.receipt-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.receipt-card h3 {
    color: #0088aa;
    margin-top: 0;
}

.receipt-details {
    margin: 15px 0;
}

.receipt-details p {
    margin: 8px 0;
    color: #333;
}

.receipt-details strong {
    color: #000;
}

.download-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
}

.download-btn:hover {
    background: #005a87;
    color: #fafafa;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #2e7d32;
}


/* IDA Verification Styles */
.ida-verification-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -35px;
    flex-wrap: wrap;
}

.ida-verification-wrapper input[name="ida_number"] {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0 !important;
}

.verify-btn {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
}

.verify-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,102,204,0.3);
}

.verify-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ida-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    flex: 1 1 100%;
    margin-top: 5px;
}

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

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

@media (max-width: 768px) {
    .ida-verification-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ida-verification-wrapper input[name="ida_number"] {
        width: 100%;
    }
    
    .verify-btn {
        width: 100%;
    }
    
    .ida-status {
        margin-top: 10px;
    }
}