@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: poppins, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    background: #191970;
}

img {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

/* ===== Site header ===== */
.header {
    overflow: hidden;
    background-color: #f8f8f8;
    padding: 20px 10px;
}

/* ===== Language bar ===== */
.language-bar {
    width: 100%;
    background: #f8f8f8;
    padding: 6px 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.language-bar .lang-icon {
    font-size: 15px;
    line-height: 1;
}

.language-bar select {
    padding: 5px 26px 5px 10px;
    border: 1.5px solid #4CAF50;
    border-radius: 18px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%234CAF50' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.language-bar select:hover,
.language-bar select:focus {
    border-color: #388E3C;
}

@media (max-width: 768px) {
    .language-bar {
        justify-content: center;
        padding: 8px 10px;
    }
    .language-bar select {
        font-size: 14px;
        padding: 7px 28px 7px 12px;
    }
}

/* ===== Info warning box (login page) ===== */
.info-message-box {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1.5px solid #ffc107;
    border-left: 5px solid #ff9800;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-message-box .info-icon {
    font-size: 18px;
    color: #ff9800;
    flex-shrink: 0;
    line-height: 1.2;
}

/* ===== Homepage hero: product photo + headline left, login card right ===== */
.hero-split {
    width: 100%;
    padding: 40px 30px;
    box-sizing: border-box;
}

.hero-split-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-left {
    flex: 1 1 440px;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-block;
    color: #7be3a9;
    background: rgba(42, 161, 95, 0.18);
    border: 1px solid rgba(123, 227, 169, 0.4);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-left h1 {
    margin: 0 0 14px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.hero-left p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #d7dcf0;
    max-width: 420px;
}

.hero-media {
    position: relative;
    display: inline-flex;
    max-width: 280px;
    margin-top: 28px;
}

.hero-media::before {
    content: "";
    position: absolute;
    top: 8%;
    left: 12%;
    width: 78%;
    height: 90%;
    background: #2aa15f;
    border-radius: 24px;
    transform: rotate(4deg);
    z-index: 0;
}

.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 4px solid #ffffff;
    display: block;
    margin: 0;
}

.hero-right {
    flex: 1 1 460px;
    display: flex;
    justify-content: center;
}

.hero-right .container {
    margin: 0 auto;
}

@media (max-width: 900px) {
    .hero-split { padding: 28px 20px; }
    .hero-split-inner { flex-direction: column; text-align: center; gap: 30px; }
    .hero-left, .hero-right { flex: 0 0 auto; width: 100%; }
    .hero-left p { max-width: none; margin: 0 auto; }
    .hero-left h1 { font-size: 26px; }
    .hero-media { justify-content: center; margin-top: 20px; }
    .hero-media img { max-width: 220px; }
}

/* ===== Login / student-details card ===== */
.wrapper {
    padding: 30px;
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
    display: flex;
    background: #f0f0f0;
    box-shadow: 0 0 5px #999999;
}

.login .col-left,
.login .col-right {
    padding: 30px;
    display: flex;
}

.login .col-left {
    width: 50%;
    clip-path: polygon(0 0, 0% 80%, 100% 0);
    background: #2aa15f;
}

.login .col-right {
    padding: 60px 30px;
    width: 50%;
    margin-left: -10%;
}

@media (max-width: 575px) {
    .login .container {
        flex-direction: column;
        box-shadow: none;
    }
    .login .col-left,
    .login .col-right {
        width: 100%;
        margin: 0;
        clip-path: none;
    }
    .login .col-right {
        padding: 30px;
    }
}

.login .login-text {
    position: relative;
    width: 100%;
    color: #ffffff;
}

.login .login-text h2,
.login .login-text h3 {
    margin: 0 0 15px 0;
    font-size: 30px;
    font-weight: 700;
}

.login .login-text p {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

.login .login-form {
    position: relative;
    width: 100%;
}

.login .login-form h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
}

.login .login-form p {
    margin: 0 0 10px 0;
    text-align: left;
    color: #666666;
    font-size: 15px;
}

.login .login-form p:last-child {
    margin: 0;
    padding-top: 3px;
}

.login .login-form label {
    display: block;
    width: 100%;
    margin-bottom: 2px;
    letter-spacing: .5px;
}

.login .login-form input,
.login .login-form select {
    display: block;
    width: 100%;
    height: 35px;
    padding: 0 10px;
    outline: none;
    border: 1px solid #cccccc;
    border-radius: 30px;
}

.login .login-form input:focus,
.login .login-form select:focus {
    border-color: #ff574e;
}

.login .login-form button,
.login .login-form input[type=submit] {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
    color: #2aa15f;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    border: 1px solid #2aa15f;
    border-radius: 30px;
    box-shadow: inset 0 0 0 0 #2aa15f;
    transition: .3s;
}

.login .login-form button:hover,
.login .login-form input[type=submit]:hover {
    color: #ffffff;
    box-shadow: inset 250px 0 0 0 #2aa15f;
}

/* ===== Student details (post-login payment form in login.php) ===== */
.detail-institution {
    margin: 0 0 16px 0;
}

.detail-institution-name {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    color: #1c1c1c;
}

.detail-institution-address {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #8a8a8a;
}

.detail-rows {
    margin-bottom: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 14.5px;
}

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

.detail-row .label {
    color: #888888;
}

.detail-row .value {
    color: #262626;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.detail-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 20px;
    padding: 12px 14px;
    background: #f2f8f4;
    border-radius: 8px;
}

.detail-balance .label {
    color: #206b41;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.detail-balance .value {
    color: #206b41;
    font-size: 19px;
    font-weight: 700;
}

.amount-select {
    margin-bottom: 14px;
}

.amount-select label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
}

.login .login-form .pay-btn {
    display: block;
    width: 100%;
    margin: 4px 0 0 0;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1.5px solid #2aa15f;
    background: #2aa15f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: .2s;
}

.login .login-form .pay-btn:hover {
    background: #23884f;
    border-color: #23884f;
    box-shadow: none;
}

/* ===== Payment receipt (order_status / order_status_gst) ===== */
.receipt-shell {
    width: 100%;
    padding: 48px 20px 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.receipt-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 34px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

/* --- status banner --- */
.receipt-status {
    text-align: center;
    margin-bottom: 26px;
}

.receipt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 14px;
}

.receipt-icon svg {
    width: 34px;
    height: 34px;
}

.receipt-icon svg circle,
.receipt-icon svg path {
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.receipt-success .receipt-icon { background: #e4f7ec; }
.receipt-success .receipt-icon svg circle,
.receipt-success .receipt-icon svg path { stroke: #2aa15f; }

.receipt-pending .receipt-icon { background: #fff3cd; }
.receipt-pending .receipt-icon svg circle,
.receipt-pending .receipt-icon svg path { stroke: #c77700; }

.receipt-failed .receipt-icon { background: #fde8e7; }
.receipt-failed .receipt-icon svg circle,
.receipt-failed .receipt-icon svg path { stroke: #e0362a; }

.receipt-card h1 {
    margin: 0 0 6px 0;
    font-size: 23px;
    font-weight: 700;
    color: #1c1c1c;
}

.receipt-sub {
    margin: 0 auto;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.5;
    color: #777777;
}

/* --- info / amount sections --- */
.receipt-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.receipt-section h2 {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #9a9a9a;
}

.receipt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 14.5px;
}

.receipt-row .label {
    color: #777777;
}

.receipt-row .value {
    color: #262626;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.receipt-row-total {
    margin-top: 4px;
    padding-top: 11px;
    border-top: 1px dashed #dddddd;
}

.receipt-row-total .label,
.receipt-row-total .value {
    color: #1c1c1c;
    font-weight: 700;
    font-size: 16px;
}

.receipt-row-balance {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f2f8f4;
    border-radius: 8px;
}

.receipt-row-balance .label,
.receipt-row-balance .value {
    color: #206b41;
    font-weight: 700;
}

/* --- reference number box --- */
.receipt-refbox {
    margin-top: 22px;
    padding: 16px;
    text-align: center;
    background: #f8f8fb;
    border: 1px dashed #d6d6e0;
    border-radius: 10px;
}

.receipt-ref-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #9a9a9a;
}

.receipt-ref-value {
    display: block;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #1c1c1c;
    font-family: 'Courier New', Courier, monospace;
}

.receipt-ref-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999999;
}

.receipt-meta {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: #aaaaaa;
}

/* --- actions --- */
.receipt-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.receipt-btn {
    flex: 1;
    display: inline-block;
    text-align: center;
    padding: 11px 16px;
    border-radius: 24px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
    box-sizing: border-box;
}

.receipt-btn-outline {
    background: transparent;
    border: 1.5px solid #2aa15f;
    color: #2aa15f;
}

.receipt-btn-outline:hover {
    background: #2aa15f;
    color: #ffffff;
}

.receipt-btn-primary {
    background: #2aa15f;
    border: 1.5px solid #2aa15f;
    color: #ffffff;
}

.receipt-btn-primary:hover {
    background: #23884f;
    border-color: #23884f;
}

@media (max-width: 500px) {
    .receipt-shell { padding: 28px 14px 14px; }
    .receipt-card { padding: 28px 22px 22px; border-radius: 14px; }
    .receipt-actions { flex-direction: column; }
}

@media print {
    body.receipt-page { background: #ffffff; }
    .receipt-actions, .site-footer { display: none; }
    .receipt-card { box-shadow: none; }
}

/* ===== Site footer ===== */
.site-footer {
    width: 100%;
    background: #f8f8f8;
    padding: 26px 20px;
    box-sizing: border-box;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.site-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    color: #2aa15f;
    text-decoration: underline;
}

.footer-contact {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555555;
}

.footer-contact a {
    color: #2aa15f;
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright {
    margin: 0;
    font-size: 12px;
    color: #888888;
}

@media (max-width: 500px) {
    .footer-links {
        gap: 10px 16px;
    }
}

/* ===== Loading spinner overlay (inc/footer.php) ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.page-loader.is-visible { display: flex; }
.page-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 32px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.page-loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #d6efe1;
    border-top-color: #2aa15f;
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}
.page-loader-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #444444;
}
@keyframes page-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner { animation-duration: 2s; }
}


/* ===== Daily maintenance window (2026-10-06) ===== */
.maintenance-box {
    text-align: center;
    padding: 24px 20px;
    background: #fff3cd;
    border: 1.5px solid #ffc107;
    border-radius: 10px;
    color: #6b4f00;
    margin: 8px 0 4px;
}
.maintenance-box .maintenance-icon { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.maintenance-box h3 { margin: 0 0 8px; font-size: 18px; color: #6b4f00; }
.maintenance-box p { margin: 0; font-size: 14px; line-height: 1.6; }
.maintenance-notice {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #856404;
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 8px 10px;
    border-radius: 4px;
}
