/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f2238;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-row {
    text-align: right;
    margin-bottom: 20px;
}

#langToggle {
    background: #2a4b73;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

#langToggle:hover {
    background: #3b6a9e;
}

/* ===== BANNER ===== */
.form-banner {
    width: 100%;
    margin-bottom: 28px;
}

.form-banner img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== PAYMENT STATUS CARD ===== */
.payment-status-card {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 32px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.payment-status-card legend {
    background: #0f2238;
    padding: 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: 40px;
    width: auto;
    margin-left: 8px;
    border: 1px solid #2e4a70;
}

.payment-failed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.big-cross {
    width: 64px;
    height: 64px;
    background-color: #dc2626;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.payment-failed-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.5px;
}

.payment-subinfo {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.failure-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
}

.small-note {
    font-size: 12px;
    color: #8fa5bc;
    margin-top: 4px;
}

/* ===== HONEYPOT ===== */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ===== RTL ARABIC STYLES ===== */
body.ar {
    direction: rtl;
    text-align: right;
}

body.ar .lang-row {
    text-align: left;
}

body.ar .payment-status-card legend {
    margin-left: 0;
    margin-right: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .payment-status-card {
        padding: 20px 18px;
    }
    
    .payment-failed-text {
        font-size: 1.2rem;
    }
    
    .big-cross {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}
