/* style.css - Kesher World Mochiler Platformer */

:root {
    --primary-blue: #38bdf8;
    --primary-indigo: #6366f1;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --bg-dark: #090d16;
    --card-bg: rgba(17, 24, 39, 0.88);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Fredoka', 'Rubik', sans-serif;
    --font-body: 'Rubik', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-main);
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   GAME CONTAINER & CANVAS
   ========================================================================== */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    touch-action: none;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

/* ==========================================================================
   HEADS-UP DISPLAY (HUD)
   ========================================================================== */
#game-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    pointer-events: none; /* Let gameplay clicks pass through */
    z-index: 100;
}

.hud-group {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto; /* Buttons & cards catch clicks */
}

/* Stats Cards */
.hud-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    font-weight: 700;
}

.hud-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-score .hud-value {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fbbf24;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.hud-icon {
    font-size: 18px;
}

.hud-coffee .hud-value,
.hud-coins .hud-value {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #f1f5f9;
}

/* Journey Progress Bar (Center HUD) */
.hud-journey {
    flex: 1;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.journey-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #e2e8f0;
}

.journey-stats {
    color: #38bdf8;
    font-weight: 700;
    font-size: 11px;
}

.journey-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #f59e0b);
    border-radius: 4px;
    transition: width 0.25s ease-out;
}

.journey-pin {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translate(50%, -50%);
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: right 0.25s ease-out;
}

/* HUD Buttons */
.hud-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hud-btn:active {
    transform: translateY(1px);
}

.hud-btn-icon-only {
    padding: 9px 12px;
    font-size: 16px;
}

#fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

#fullscreen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#fullscreen-icon svg {
    display: block;
    transition: transform 0.18s ease;
}

#fullscreen-btn:hover #fullscreen-icon svg {
    transform: scale(1.15);
}

#fullscreen-btn.active {
    border-color: var(--primary-blue);
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Pseudo Fullscreen Fallback for iOS Safari & unsupported mobile engines */
body.pseudo-fullscreen {
    position: fixed !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

body.pseudo-fullscreen #game-container {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    z-index: 99999 !important;
}

/* ==========================================================================
   STATION INTERACTION PROMPT
   ========================================================================== */
.station-prompt {
    position: absolute;
    bottom: clamp(75px, 14vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    pointer-events: auto;
    cursor: pointer;
    animation: prompt-float 1.8s ease-in-out infinite alternate;
}

.station-prompt.hidden {
    display: none;
}

.prompt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), 0 10px 25px rgba(0, 0, 0, 0.6);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.prompt-icon {
    font-size: 20px;
    animation: prompt-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes prompt-float {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes prompt-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.hud-lives {
    font-size: 14px;
    letter-spacing: 1px;
}

.hud-stage .hud-value {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.hud-powerup {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    animation: powerup-glow 1.5s ease-in-out infinite alternate;
}

.hud-powerup.hidden {
    display: none;
}

.powerup-timer-bar {
    width: 36px;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.powerup-timer-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    transition: width 0.1s linear;
}

@keyframes powerup-glow {
    0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.65); }
}

/* Power-Up Pickup Toast Notification */
.powerup-toast {
    position: absolute;
    top: clamp(80px, 12vh, 100px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 2px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5), 0 10px 25px rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 999px;
    color: #ffffff;
    pointer-events: none;
    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    white-space: nowrap;
}

.powerup-toast.hidden {
    display: none;
}

.powerup-toast-icon {
    font-size: 26px;
}

.powerup-toast-title {
    font-size: 15px;
    font-weight: 800;
    color: #fbbf24;
}

.powerup-toast-desc {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

@keyframes toast-in {
    0% { transform: translateX(-50%) translateY(-20px) scale(0.85); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   TOUCH CONTROLS (MOBILE & TABLETS)
   ========================================================================== */
#touch-controls {
    position: absolute;
    bottom: clamp(12px, 3vh, 25px);
    left: 0;
    width: 100%;
    padding: 0 clamp(10px, 3vw, 24px);
    display: none; /* Displayed via JS when touch is supported */
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 120;
    direction: ltr !important; /* CRITICAL: enforce LTR so left is on the left, right on right */
}

.touch-group {
    display: flex;
    gap: 16px;
    pointer-events: auto;
    direction: ltr !important;
    flex-direction: row !important;
}

.touch-left-controls, .touch-right-controls {
    direction: ltr !important;
    flex-direction: row !important;
}

.touch-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.08s ease, background 0.08s ease;
}

.touch-btn:active, .touch-btn.active {
    background: rgba(56, 189, 248, 0.4);
    border-color: #38bdf8;
    transform: scale(0.92);
}

.touch-btn-jump {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(5, 150, 105, 0.7));
    border-color: rgba(52, 211, 153, 0.5);
}

.touch-btn-jump:active, .touch-btn-jump.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.95));
}


.touch-subtext {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   MODAL DIALOGS (PROJECTS, PASSPORT, HELP, VICTORY)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 36px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
    transform: scale(1) translateY(0);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.92) translateY(20px);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px; /* RTL friendly: close on top-left */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Badges */
.modal-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-region-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.modal-points-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-heading);
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.modal-icon-glow {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.modal-icon-glow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.modal-title-group h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Modal Body */
.modal-body {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* Actions Buttons */
.modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Contact Form inside Modal */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
}

#contact-form input, #contact-form textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    text-align: right;
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

#contact-status {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   PASSPORT MODAL
   ========================================================================== */
.passport-card {
    max-width: 760px;
    padding: 40px;
}

.passport-header {
    text-align: center;
    margin-bottom: 24px;
}

.passport-title-icon {
    font-size: 38px;
    display: inline-block;
    margin-bottom: 8px;
}

.passport-header h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.passport-tagline {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.passport-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 28px;
}

.passport-stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.passport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stamp-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 140px;
}

.stamp-slot:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
}

.stamp-slot img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.stamp-slot .stamp-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
}

.stamp-slot .stamp-flag {
    font-size: 14px;
    margin-bottom: 4px;
}

.stamp-slot.locked {
    opacity: 0.45;
    filter: grayscale(1);
}

.stamp-slot.locked .stamp-name {
    color: #64748b;
}

.stamp-slot.unlocked {
    background: rgba(56, 189, 248, 0.08);
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stamp-slot.unlocked:hover img {
    transform: scale(1.1) rotate(5deg);
}

.passport-footer {
    text-align: center;
}

/* Help Modal */
.help-card {
    max-width: 480px;
}

.help-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
}

.help-key {
    background: #1e293b;
    border: 1px solid #475569;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

.help-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Victory Modal */
.victory-card {
    text-align: center;
    max-width: 480px;
    padding: 44px;
}

.victory-trophy {
    font-size: 64px;
    margin-bottom: 12px;
    animation: prompt-bounce 0.8s ease-in-out infinite alternate;
}

.victory-card h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 12px;
}

.victory-final-score {
    margin: 24px 0;
    font-size: 18px;
    color: #94a3b8;
}

.victory-final-score strong {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #fbbf24;
    display: block;
    margin-top: 6px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    #game-hud {
        padding: 10px 12px;
        gap: 6px;
    }

    .hud-card {
        padding: 6px 10px;
    }

    .hud-label {
        display: none;
    }

    .hud-journey {
        max-width: 170px;
        padding: 6px 10px;
    }

    .journey-stats {
        display: none;
    }

    .hud-btn-text {
        display: none;
    }

    .hud-btn {
        padding: 8px 10px;
    }

    .modal-card {
        padding: 24px 20px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-close-btn {
        top: 12px;
        left: 12px;
    }

    [dir="ltr"] .modal-close-btn {
        right: 12px;
        left: auto;
    }

    .modal-badge-wrapper {
        justify-content: center;
    }

    .station-prompt {
        bottom: 110px;
    }

    .prompt-content {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 580px) {
    #game-hud {
        padding: 8px 10px;
        gap: 4px;
    }

    .hud-journey {
        display: none;
    }

    .hud-stage {
        display: none;
    }

    .hud-actions {
        gap: 4px;
    }

    .hud-btn {
        padding: 6px 8px;
    }

    .hud-btn-icon-only {
        padding: 6px 8px;
    }
}

/* ==========================================================================
   INTERNATIONALIZATION (i18n) & LTR / RTL ADAPTATIONS
   ========================================================================== */
#lang-btn {
    font-weight: 700;
    color: var(--primary-blue);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

#lang-btn:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    background: rgba(30, 41, 59, 0.95);
}

[dir="ltr"] .modal-close-btn {
    right: 20px;
    left: auto;
}

[dir="rtl"] .modal-close-btn {
    left: 20px;
    right: auto;
}

[dir="ltr"] #contact-form input,
[dir="ltr"] #contact-form textarea {
    text-align: left;
}

[dir="rtl"] #contact-form input,
[dir="rtl"] #contact-form textarea {
    text-align: right;
}

[dir="ltr"] .progress-fill {
    left: 0;
    right: auto;
}

[dir="rtl"] .progress-fill {
    right: 0;
    left: auto;
}

[dir="ltr"] .journey-pin {
    transform: translate(-50%, -50%);
}

[dir="rtl"] .journey-pin {
    transform: translate(50%, -50%);
}

