@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wdth,wght@62.5..100,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ==========================================================================
   PARKONIC Payment Gateway - Home Page Modern Stylesheet
   ========================================================================== */

:root {
    --primary: #e09600;
    --primary-hover: #ffbf3f;
    --primary-light: rgba(255, 128, 0, 0.1);
    --primary-glow: rgba(255, 128, 0, 0.28);
    --dark-navy: #022E48;
    --navy-accent: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(255, 255, 255, 0.85);
    --input-border: #e2e8f0;
    --input-focus-border: var(--primary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-viewport {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: var(--header-bg);
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 24px;
    overflow-x: hidden;
}

/* Elegant Backdrop Overlay */
.main-viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: radial-gradient(circle at top, rgba(255, 255, 255, 0.30) 0%, rgba(248, 250, 252, 0.40) 100%); */
    z-index: 0;
}

.hero-container,
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Card Language Switcher */
.card-lang-switcher {
    position: absolute;
    top: 20px;
    right: 22px;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
}

[dir="rtl"] .card-lang-switcher {
    right: auto;
    left: 22px;
}

.site-header {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 46, 72, 0.12);
    border-radius: 9999px;
    padding: 7px 15px;
    color: var(--dark-navy);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans Arabic', sans-serif;
}

.lang-pill:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: rgba(255, 128, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lang-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Center Hero Card */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: auto;
}

.payment-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: 
        0 25px 50px -12px rgba(2, 46, 72, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    width: 100%;
    max-width: 580px;
    padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 38px);
    text-align: center;
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Centered Logo Inside the Card */
.card-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.card-logo-wrap .logo {
    height: 52px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.25s ease;
    margin-top: 30px;
}



/* Badge Chip */
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.badge-chip svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.hero-title {
    font-size: clamp(1.45rem, 3.5vw, 1.95rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark-navy);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 2vw, 0.98rem);
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 26px;
    font-weight: 500;
}

/* Plate Image Preview */
.plate-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0px;
    margin-bottom: 18px;
}

#plate-image {
    max-width: 160px;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: #ffffff;
    padding: 12px;
    transition: all 0.3s ease;
}

/* Form Layout & Input Styling */
.payment-form {
    width: 100%;
    text-align: left;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-left: 2px;
}

.input-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box-wrap .field-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.custom-input,
.custom-select {
    width: 100%;
    height: 52px;
    padding: 12px 16px 12px 46px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 14px;
    outline: none;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.custom-input:focus,
.custom-select:focus {
    border-color: var(--input-focus-border);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.custom-input:focus ~ .field-icon,
.custom-select:focus ~ .field-icon {
    fill: var(--primary);
}

/* Custom Select Styling */
.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 .5L5 5.5 10 .5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 10px 6px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.select-wrap:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Responsive 2-column grid for plate code and number */
.inputs-row-2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
}

/* Submit Button */
.btn-search-submit {
    width: 100%;
    height: 54px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px -4px var(--primary-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-search-submit:hover {
    background: linear-gradient(135deg,var(--primary-hover) 0%,  var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(255, 128, 0, 0.45);
}

.btn-search-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px -2px var(--primary-glow);
}

.btn-search-submit svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Trust Banner */
.trust-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-banner svg {
    width: 14px;
    height: 14px;
    fill: #10b981;
}

/* Inside Card App Promo Section */
.card-app-promo {
    margin-top: 24px;
    padding-top: 20px;
    /* border-top: 1px solid rgba(226, 232, 240, 0.8); */
    width: 100%;
}

.card-app-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    line-height: 1.45;
}

.card-app-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-app-badges .app-badge-link {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.2s;
}

.card-app-badges .app-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.card-app-badges .app-badge-link img {
    height: 38px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.card-app-badges .app-badge-link:hover img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Minimal Footer Section */
.site-footer {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    padding: 14px 0 6px;
}

.footer-copy {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   RTL (Arabic) Overrides
   ========================================================================== */
html[dir="rtl"],
html[dir="rtl"] body,
html[lang="ar"],
html[lang="ar"] body,
[dir="rtl"],
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[dir="rtl"] *,
html[lang="ar"] * {
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] button,
html[dir="rtl"] textarea,
html[dir="rtl"] optgroup,
html[dir="rtl"] option,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] button,
html[lang="ar"] textarea,
html[lang="ar"] optgroup,
html[lang="ar"] option {
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

[dir="rtl"] .payment-form {
    text-align: right;
}

[dir="rtl"] .field-group {
    text-align: right;
}

[dir="rtl"] .field-label {
    margin-right: 2px;
    margin-left: 0;
}

[dir="rtl"] .input-box-wrap .field-icon {
    right: 16px;
    left: auto;
}

[dir="rtl"] .custom-input,
[dir="rtl"] .custom-select {
    padding: 12px 46px 12px 16px;
    text-align: right;
    direction: rtl;
    font-weight: 600;
    
}
[dir="rtl"] .custom-input{
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

[dir="rtl"] .select-wrap::after {
    left: 18px;
    right: auto;
}

[dir="rtl"] .lang-pill,
html[lang="ar"] .lang-pill,
.lang-pill.en-text,
.lang-pill.en-text span {
    direction: ltr !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

[dir="rtl"] .btn-search-submit {
    font-size: 17px;
    font-weight: 600;
}

/* ==========================================================================
   Status Pages & Feedback Display Components
   ========================================================================== */
.status-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 20px;
    transition: transform 0.3s ease;
}

.status-icon-wrap:hover {
    transform: scale(1.05);
}

.status-icon-wrap.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.status-icon-wrap.info {
    background: rgba(2, 46, 72, 0.1);
    color: var(--dark-navy);
}

.status-icon-wrap.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}

.status-icon-wrap.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.status-icon-wrap svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
}

.status-title {
    font-size: clamp(1.35rem, 3.2vw, 1.8rem);
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.35;
    margin-bottom: 10px;
}

.status-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 26px;
    font-weight: 500;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--dark-navy);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 46, 72, 0.18);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-back-link:hover svg {
    transform: translateX(-3px);
}

[dir="rtl"] .btn-back-link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Trip Cards List (Search Results)
   ========================================================================== */
.trips-container {
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    margin: 18px 0 24px;
}

.trip-card-item {
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.trip-card-item:hover {
    border-color: var(--primary);
}

[dir="rtl"] .trip-card-item {
    text-align: right;
}

.trip-plate-badge {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-navy);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.trip-time-info {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-pay-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--primary-glow);
}

/* ==========================================================================
   Trip Details / Summary Table (Result Page)
   ========================================================================== */
.trip-summary-box {
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 18px;
    padding: 20px;
    margin: 18px 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.trip-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14.5px;
}

.trip-detail-row:last-child {
    border-bottom: none;
}

.trip-detail-row .label {
    color: var(--text-muted);
    font-weight: 600;
}

.trip-detail-row .val {
    color: var(--dark-navy);
    font-weight: 600;
}

.trip-detail-row.total-row {
    margin-top: 6px;
    padding-top: 14px;
    font-size: 16.5px;
}

.trip-detail-row.total-row .val {
    color: var(--primary);
    font-size: 1.25em;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 640px) {
    .main-viewport {
        padding: 12px 14px 20px;
    }

    .card-logo-wrap .logo {
        height: 44px;
        margin-top: 20px;
    }

    .card-lang-switcher {
        top: 14px;
        right: 14px;
    }

    [dir="rtl"] .card-lang-switcher {
        right: auto;
        left: 14px;
    }

    .lang-pill {
        padding: 5px 12px;
        font-size: 12.5px;
        gap: 5px;
    }

    .lang-pill svg {
        width: 14px;
        height: 14px;
    }

    .card-logo-wrap {
        margin-top: 14px;
    }

    .payment-card {
        padding: 26px 18px 24px;
        border-radius: 22px;
    }

    .inputs-row-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .app-badge-link img {
        height: 38px;
    }
}

@media screen and (max-height: 720px) {
    .hero-subtitle {
        margin-bottom: 16px;
    }
    .form-grid {
        gap: 10px;
        margin-bottom: 16px;
    }
    .trust-banner {
        margin-top: 14px;
    }
}
