/* ===============================================
   Hitpay Direct - Front End Styles
   Version: 6.0.6 - Stable with your preferred h1/h2
   =============================================== */

.hitpay-form {
    max-width: 580px;
    margin: 25px auto;
    padding: 20px 18px;
    font-family: system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.hitpay-form .project-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #005a8c;
    margin-bottom: 20px;
}

.hitpay-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14.5px;
}

.hitpay-form input[type="text"],
.hitpay-form input[type="email"],
.hitpay-form input[type="tel"] {
    width: 100%;
    padding: 11px 13px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15.5px;
    margin-bottom: 16px;
}

/* Compact Radio - No default circle */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.radio-option {
    flex: 1 1 100%;
    padding: 11px 16px;
    border: 2px solid #ddd;
    border-radius: 9px;
    cursor: pointer;
    text-align: center;
    font-size: 13.8px;
    font-weight: 500;
    background: #fff;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:hover { border-color: #005a8c; }

.radio-option.selected {
    border-color: #005a8c;
    background: #005a8c;
    color: white;
}

/* ====================== PAYMENT STATUS PAGE ====================== */
.hitpay-status-page {
    max-width: 720px;
    margin: 40px auto;
    padding: 20px;
}

.status-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 35px;
    text-align: center;
}

.status-card.success .icon { font-size: 78px; margin-bottom: 12px; }

.hitpay-status-page h2 {
    color: #005a8c;
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 20px 0;
}

.details {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 12px;
    text-align: left;
    margin: 25px 0;
    line-height: 1.85;
}

/* ====================== SHOW TICKET PAGE ====================== */
.hitpay-ticket-page {
    max-width: 720px;
    margin: 40px auto;
    padding: 20px;
}

.hitpay-ticket-page h1 {
    text-align: center;
    color: #005a8c;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ticket-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 35px;
    line-height: 1.9;
    font-size: 16.5px;
}

/* QR Section */
.qr-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    text-align: -webkit-center;
}

.qr-code {
    max-width: 280px;
    height: auto;
    border: 6px solid #10b981;
    border-radius: 12px;
}

.print-note {
    font-size: 15px;
    color: #10b981;
    font-weight: 600;
    margin-top: 30px;
}

/* Buttons */
.button-proceed,
.button-mark-collected {
    display: block !important;
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4) !important;
}

.button-proceed:hover,
.button-mark-collected:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    z-index: 99999;
    font-size: 18px;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #10b981;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
