/* ========================================
   CONTACT PAGE — Premium Stylesheet
   ======================================== */

/* ===== Hero ===== */
.ct-hero {
    position: relative;
    height: 78vh;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #060c1a;
}

.ct-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/contact-hero.png') center center / cover no-repeat;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6, 12, 26, 0.93) 45%, rgba(6, 12, 26, 0.25) 100%);
}

.ct-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: 55%;
    padding: 0 0 0 100px;
}

.ct-hero-tag {
    display: inline-block;
    background: rgba(0, 114, 188, 0.2);
    border: 1px solid rgba(0, 114, 188, 0.5);
    color: #60a5fa;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ct-hero-content h1 {
    font-size: 58px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 22px;
}

.ct-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.ct-hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ct-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
}

.ct-badge i {
    color: #60a5fa;
    font-size: 13px;
}

.ct-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    animation: ctBounce 2s infinite;
}

@keyframes ctBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== Contact Main ===== */
.ct-main {
    padding: 100px 0;
    background: #fff;
}

.ct-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 70px;
    align-items: start;
}

/* Labels */
.ct-label {
    display: inline-block;
    background: rgba(0, 114, 188, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 114, 188, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ct-label--light {
    background: rgba(255,255,255,0.1);
    color: #60a5fa;
    border-color: rgba(96,165,250,0.3);
}

/* Form side */
.ct-form-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #080f1e;
    margin-bottom: 10px;
}

.ct-form-header p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 38px;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.ct-input-wrap {
    position: relative;
}

.ct-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.ct-textarea-wrap i {
    top: 18px;
    transform: none;
}

.ct-input-wrap input,
.ct-input-wrap textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}

.ct-input-wrap input:focus,
.ct-input-wrap textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.08);
}

.ct-input-wrap textarea {
    resize: vertical;
    min-height: 130px;
}

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0072bc, #0056a3);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 114, 188, 0.3);
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
}

.ct-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 114, 188, 0.4);
}

/* Info side */
.ct-info-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #080f1e;
    margin-bottom: 10px;
}

.ct-info-header p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 36px;
}

.ct-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ct-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 114, 188, 0.1);
    border-color: rgba(0, 114, 188, 0.2);
}

.ct-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0072bc, #0056a3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 114, 188, 0.3);
}

.ct-info-body span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.ct-info-body p {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* ===== Offices ===== */
.ct-offices {
    padding: 100px 0;
    background: #060c1a;
    position: relative;
}

.ct-offices::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0, 114, 188, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(0, 60, 120, 0.1) 0%, transparent 50%);
}

.ct-offices-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.ct-offices-header h2 {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.ct-offices-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.ct-offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.ct-office-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 32px 28px;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ct-office-card:hover {
    background: rgba(0, 114, 188, 0.14);
    border-color: rgba(0, 114, 188, 0.4);
    transform: translateY(-5px);
}

.ct-office-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ct-office-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ct-office-country h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.ct-office-country span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #60a5fa;
}

.ct-office-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-office-details li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.ct-office-details li i {
    color: #60a5fa;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
}

/* ===== RTL ===== */
html[dir="rtl"] .ct-hero-content {
    left: 0;
    right: auto;
    padding: 0 0 0 100px;
    text-align: left;
    direction: ltr;
}

html[dir="rtl"] .ct-hero-content h1 br {
    display: none;
}

html[dir="rtl"] .ct-form-header,
html[dir="rtl"] .ct-info-header,
html[dir="rtl"] .ct-offices-header {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .ct-form {
    direction: rtl;
}

html[dir="rtl"] .ct-field label {
    text-align: right;
}

html[dir="rtl"] .ct-input-wrap i {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .ct-textarea-wrap i {
    top: 18px;
    transform: none;
}

html[dir="rtl"] .ct-input-wrap input,
html[dir="rtl"] .ct-input-wrap textarea {
    padding: 14px 44px 14px 16px;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .ct-submit {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* ══════════════════════════════════════
   INFO CARDS — RTL
══════════════════════════════════════ */
html[dir="rtl"] .ct-info-card {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .ct-info-body {
    text-align: right !important;
    width: 100%;
}

html[dir="rtl"] .ct-info-body span {
    display: block;
    text-align: right;
}

/* Phone numbers & emails — never flip, keep LTR */
html[dir="rtl"] .ct-info-body p {
    text-align: right;
    direction: ltr;
    unicode-bidi: plaintext;
}

/* ══════════════════════════════════════
   OFFICE CARDS — RTL
══════════════════════════════════════ */
html[dir="rtl"] .ct-office-card {
    direction: rtl;
}

html[dir="rtl"] .ct-office-top {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .ct-office-country {
    text-align: right;
}

html[dir="rtl"] .ct-office-country h3,
html[dir="rtl"] .ct-office-country span {
    text-align: right;
    display: block;
}

html[dir="rtl"] .ct-office-details li {
    flex-direction: row-reverse !important;
    text-align: right;
}

/* Phone/email spans inside office cards — keep numbers readable */
html[dir="rtl"] .ct-office-details li span {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: right;
}

html[dir="rtl"] .ct-hero-badges {
    direction: ltr;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .ct-offices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
    .ct-offices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .ct-hero-content { width: 65%; }
    .ct-hero-content h1 { font-size: 44px; }
    .ct-main-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .ct-hero { height: auto; min-height: unset; padding: 110px 0 60px; }
    .ct-hero-content {
        position: relative; top: auto; left: auto;
        transform: none; width: 100%; padding: 0 24px;
    }
    .ct-hero-content h1 { font-size: 32px; }
    html[dir="rtl"] .ct-hero-content h1 { white-space: normal; }
    .ct-hero-badges { gap: 10px; flex-wrap: wrap; }
    .ct-badge { font-size: 12px; padding: 8px 16px; }
    .ct-row { grid-template-columns: 1fr; }
    .ct-offices-grid { grid-template-columns: 1fr 1fr; }
    .ct-offices-header h2 { font-size: 28px; }
    .ct-main { padding: 70px 0; }
    .ct-offices { padding: 70px 0; }
    .ct-form-header h2,
    .ct-info-header h2 { font-size: 28px; }
    .ct-submit { align-self: stretch; justify-content: center; }
    html[dir="rtl"] .ct-submit { align-self: stretch; }
}

@media (max-width: 480px) {
    .ct-offices-grid { grid-template-columns: 1fr; }
    .ct-hero-content h1 { font-size: 26px; }
    .ct-info-cards { gap: 12px; }
    .ct-info-card { padding: 18px 20px; }
    .ct-office-card { padding: 24px 20px; }
    .ct-form-header h2,
    .ct-info-header h2 { font-size: 24px; }
}
