/* ===== 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: 1000px;
    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);
}

/* ===== FIELDSET SECTIONS ===== */
.form-section {
    background: rgba(28, 53, 83, 0.5);
    border: 1px solid #2e4a70;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 32px;
    transition: all 0.2s;
}

.form-section 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;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
    color: #f1f5f9;
}

/* ===== CONTACT FIELDS GRID ===== */
.contact-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 11px;
    color: #8fa5bc;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field input,
.field select {
    background: #1c3553;
    border: 1px solid #2e4a70;
    padding: 12px 14px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #1a2f4a;
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa5bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field select option {
    background: #1c3553;
    color: white;
}

.field .error {
    color: #f87171;
    font-size: 11px;
    margin-top: 4px;
    min-height: 18px;
}

/* ===== PAYMENT CARDS ROW ===== */
.payment-options-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 24px 0 16px;
    flex-wrap: wrap;
}

.payment-card {
    flex: 1;
    min-width: 280px;
    background: rgba(28, 53, 83, 0.6);
    border-radius: 20px;
    padding: 20px 20px 24px;
    border: 1px solid #2e4a70;
    transition: all 0.2s;
    text-align: center;
}

.payment-card:hover {
    border-color: #3b82f6;
    background: rgba(28, 53, 83, 0.8);
}

.payment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.payment-duration {
    font-size: 0.9rem;
    color: #8fa5bc;
    margin-bottom: 8px;
}

.payment-price {
    font-size: 2rem;
    font-weight: 700;
    color: #facc15;
    margin: 12px 0;
}

.payment-price small {
    font-size: 0.9rem;
    font-weight: normal;
    color: #94a3b8;
}

.payment-plan-btn {
    background: #10b981;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: 0.2s;
    font-size: 14px;
}

.payment-plan-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.payment-plan-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* ===== CALENDAR CONTAINER ===== */
.calendar-container {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2e4a70;
}

.calendar-container > div {
    min-height: 500px;
    height: auto;
    border-radius: 16px;
}

/* ===== PAYMENT STATUS ===== */
.payment-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
}

.payment-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.payment-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

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

body.ar .section-title {
    border-left: none;
    border-right: 3px solid #3b82f6;
    padding-left: 0;
    padding-right: 12px;
}

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

body.ar .form-section legend {
    margin-left: 0;
    margin-right: 8px;
}

body.ar .payment-card {
    text-align: center;
}

body.ar .field label {
    text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-section {
        padding: 20px 18px;
    }
    .payment-options-row {
        flex-direction: column;
    }
    .calendar-container > div {
        min-height: 450px;
    }
}
