/* margin-top به 75px و margin-bottom به 15px تغییر یافت تا فاصله از هدر و فوتر کم شود */
.qt-main-container { max-width: 1100px; margin: 75px auto 15px auto; padding: 0 15px; font-family: iransans, sans-serif; }

/* فاصله باکس‌ها (gap) در دسکتاپ و موبایل از 15px به 10px کاهش یافت */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ساختار ستون‌های گرید */
.checkout-left-col { display: flex; flex-direction: column; gap: 10px; }
.checkout-right-col { position: sticky; top: 100px; align-self: start; }

/* کاهش پدینگ داخلی باکس‌های مشخصات */
.card-box { background: #fff; border: 1px solid #e9ecef; border-radius: 15px; padding: 12px 15px 8px 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }

/* تغییر هدر به حالت مینیمال با پدینگ بهینه‌تر */
.soft-header-1 { 
    background: #ffffff; 
    color: #084298; 
    padding: 10px 15px; 
    margin: -12px -15px 12px -15px; 
    border-radius: 14px 14px 0 0; 
    font-weight: bold; 
    font-size: 15px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border-bottom: 1px solid #e9ecef;
    border-right: 4px solid #0d6efd; 
}
.purchase-info-box { background: #f8f9fa; border-radius: 12px; padding: 10px; margin-bottom: 10px; border: 1px solid #e9ecef; }
.purchase-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.purchase-info-row:not(:last-child) { border-bottom: 1px dashed #dee2e6; margin-bottom: 8px; padding-bottom: 8px; }
.purchase-info-row .label { color: #6c757d; display: flex; align-items: center; gap: 6px; }
.purchase-info-row .value { font-weight: bold; color: #212529; }

/* تنظیمات کادرهای ورودی و آیکون‌ها */
.input-group-custom { position: relative; width: 100%; }
.input-flex-1 { flex: 1; min-width: 0; }
.input-group-custom svg.icon-inside { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #adb5bd; font-size: 16px; pointer-events: none; }
.input-group-custom svg.icon-arrow-left { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #adb5bd; pointer-events: none; }
.input-group-custom .form-control { width: 100%; height: 42px; padding: 8px 12px 8px 38px; border: 1px solid #ced4da; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; }
.input-group-custom input.form-control { padding-right: 38px; padding-left: 12px; }
.input-group-custom .form-control:focus { border-color: #0d6efd; outline: none; box-shadow: 0 0 0 3px rgba(13,110,253,0.1); background-color: #fff; }

.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field-row-wrap { flex-wrap: wrap; }
.field-label { font-size: 14px; font-weight: bold; color: #495057; margin: 0; min-width: 120px; white-space: nowrap; }

.info-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.info-row.price-row { background: #f8f9fa; padding: 12px; border-radius: 10px; font-weight: bold; font-size: 16px; color: #0d6efd; align-items: center; border: 1px solid #e9ecef; }

/* تنظیمات دکمه تخفیف */
.discount-box { display: flex; gap: 8px; align-items: center; margin-top: 0; margin-bottom: 15px; }
.btn-apply { background: #6c757d; color: #fff; border: none; padding: 0 18px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-weight: 500; height: 42px; font-size: 14px; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.btn-apply:hover { background: #5c636a; }

/* درگاه‌های بانکی */
.bank-gateways { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.bank-card { flex: 1; min-width: 75px; border: 2px solid #e9ecef; border-radius: 8px; padding: 10px 6px; cursor: pointer; text-align: center; transition: 0.2s; position: relative; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.bank-card:hover { border-color: #0d6efd; background: #f8f9fa; }
.bank-card input { position: absolute; opacity: 0; }
.bank-card input:checked ~ .bank-content { color: #0d6efd; font-weight: bold; }
.bank-content { font-size: 12px; margin: 0; color: #495057; white-space: nowrap; }
.bank-img { max-height: 28px; display: block; object-fit: contain; }

.submit-btn { width: 100%; padding: 13px; border: none; border-radius: 10px; background: #198754; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 15px; }
.submit-btn:hover { background: #157347; }
.submit-btn:disabled { background: #adb5bd; cursor: not-allowed; }

/* ---- استایل‌های جدید و مدرن قوانین سینما ---- */
.cinema-rules-card { 
    background: #ffffff; 
    border-radius: 24px; 
    padding: 35px 25px; 
    max-width: 550px; 
    margin: 60px auto; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); 
    border: 1px solid #f0f4f8;
    text-align: center;
}

.cinema-rules-card h2 {
    font-size: 1.4rem;
    color: #dc3545;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cinema-rules-img { 
    max-width: 80px; /* سایز متناسب‌تر تصویر هشدار */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(220, 53, 69, 0.2));
}

.cinema-rules-alert { 
    background: #fffafa; 
    border: 1px solid #ffebee; 
    border-radius: 16px; 
    padding: 20px;
    text-align: right;
    font-size: 13.5px; 
    line-height: 2.2; 
    color: #495057;
}

.cinema-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.cinema-rule-item:last-child {
    margin-bottom: 0;
}

.cinema-rules-strong { 
    color: #198754; /* رنگ سبز برای تیک‌ها */
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 3px;
}

/* استایل اختصاصی دکمه‌ها */
.cinema-rules-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

@media (min-width: 480px) {
    .cinema-rules-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-cinema-agree {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-cinema-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.35);
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
}

.btn-cinema-back {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 14px 25px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-cinema-back:hover {
    background: #e2e6ea;
    color: #495057;
    border-color: #dae0e5;
}
/* استایل کادرهای پیام (فاصله مارجین و پدینگ کاهش یافت) */
.custom-error-alert { background-color: #fff2f2; border: 1px solid #ffcdd2; border-right: 4px solid #dc3545; color: #b02a37; padding: 10px 15px; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: bold; }
.custom-error-alert-mt { margin-top: 10px; }
.custom-error-alert svg { flex-shrink: 0; }

.custom-info-alert { background-color: #f0f9ff; border: 1px solid #b6e0fe; border-right: 4px solid #0d6efd; color: #084298; padding: 10px 15px; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: bold; }
.custom-info-alert svg { flex-shrink: 0; }

/* کلاس‌های جدید جایگزین کدهای inline style */
.icon-valign { vertical-align: -0.125em; }
.icon-valign-lg { vertical-align: -0.125em; font-size: 18px; }
.cinema-rules-img { max-width: 150px; }
.cinema-rules-alert { font-size: 14px; line-height: 2; }
.cinema-rules-strong { color: black; }
.ticket-qty-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-left: 35px;
    padding-right: 12px;
    font-weight: bold;
    background-color: #ffffff !important;
}.phone-warning { width: 100%; font-size: 11px; color: #dc3545; text-align: right; padding-right: 5px; margin-top: 5px; }
.hidden-price { display: none; }
.gift-code-input { text-transform: lowercase; }
.agreement-container { padding: 0; display: flex; gap: 8px; align-items: center; }
.agreement-checkbox { width: 18px; height: 18px; cursor: pointer; transform: translateY(2px); margin-top: 0; }
.agreement-label { font-size: 13px; cursor: pointer; margin-bottom: 0; }
.agreement-link { color: #0d6efd; text-decoration: none; font-weight: bold; }
.alert-link-bold { color: inherit; text-decoration: underline; font-weight: bold; }