/* ===== CSS Variables ===== */
:root {
    --primary: #16A249;
    --primary-dark: #10863b;
    --primary-glow: rgba(22, 162, 73, 0.25);
    --primary-light: #1cd35f;
    --bg: #000000;
    --surface: #0d0d0d;
    --surface2: #111111;
    --surface3: #161616;
    --border: #1e1e1e;
    --border-2: #16a24957;
    --border-active: #16A249;
    --text: #ffffff;
    --text-muted: #8a8a8a;
    --text-muted: #b0b0b0;
    --text-sub: #b0b0b0;
    --error: #e74c4c;
    --error-bg: rgba(231, 76, 76, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; border: 2px solid #000; }
* { scrollbar-width: thin; scrollbar-color: var(--primary) #000; }

/* ===== Body ===== */
html, body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Background ===== */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-canvas::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #16a24940 0%, transparent 65%);
    border-radius: 50%;
}
.bg-canvas::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #16a24933 0%, transparent 65%);
    border-radius: 50%;
}
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(22,162,73,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,162,73,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== Page Layout ===== */
.page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 120px 16px 48px; */
    padding: 60px 16px 48px;
}

/* ===== Logo Strip ===== */
.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}
.logo-strip .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-strip .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
}
.logo-strip .brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}
.logo-strip .brand-name span {
    color: var(--primary);
}

/* ===== Card ===== */
.form-card {
    width: 100%;
    max-width: 680px;
    /* background: var(--surface); */
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
    0 0 0 1px rgba(22,162,73,0.08),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(22,162,73,0.06);
}

/* ===== Card Header ===== */
.card-header {
    padding: 40px 44px 0px;
    /* background: linear-gradient(135deg, #0a1a0f 0%, #000 100%); */
    /* border-bottom: 1px solid rgba(22,162,73,0.15); */
    position: relative;
    overflow: hidden;
}
.card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(22,162,73,0.15), transparent 60%);
    pointer-events: none;
}
.card-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22,162,73,0.12);
    border: 1px solid rgba(22,162,73,0.3);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.card-header .badge i { font-size: 13px; }
.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    /* color: #fff; */
    color: #000000;
    line-height: 1.2;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
}
.card-header h1 span {
    background: linear-gradient(90deg, #16A249, #1cd35f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card-header p {
    color: var(--text-sub);
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 300;
}

/* ===== Trust Badges ===== */
.trust-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
}
.trust-item i {
    color: var(--primary);
    font-size: 14px;
}

/* ===== Form Body ===== */
.card-body {
    padding: 28px 44px 44px;
}

/* ===== Section Label ===== */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 12px;
}
.section-label:first-child { margin-top: 0; }
.section-label .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.section-label span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d2d2d2;
}

/* ===== Form Group ===== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    /* color: var(--text-sub); */
    color: #000000;
    margin-bottom: 8px;
}
.form-group label .req {
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
}

/* ===== Input Styles ===== */
.input-wrap {
    position: relative;
}
.input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    /* background: var(--surface2); */
    background: #f4f4f4;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius);
    color: var(--text);
    color: #000000;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    padding: 13px 16px 13px 44px;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: var(--primary);
    background: var(--surface3);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input[type="text"]:focus ~ .icon,
input[type="email"]:focus ~ .icon,
input[type="tel"]:focus ~ .icon {
    color: var(--primary);
}

input.error, select.error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(231,76,76,0.12) !important;
}
input.valid, select.valid {
    border-color: var(--primary) !important;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a8a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select option {
    background: #1a1a1a;
    color: #fff;
}

/* ===== WhatsApp Row ===== */
.phone-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
}

.phone-row select {
    padding-left: 14px;
    padding-right: 10px;    
}

/* ===== Grid 2 cols ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ===== Error Message ===== */
.err-msg {
    display: none;
    /* align-items: center; */
    gap: 5px;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}
.err-msg.show {
    display: flex;
}
.err-msg i { font-size: 13px; }

/* ===== Time Options ===== */
.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.time-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.time-chip:hover {
    border-color: rgba(22,162,73,0.4);
    color: var(--text);
}
.time-chip input[type="radio"] { display: none; }
.time-chip.selected {
    background: rgba(22,162,73,0.1);
    border-color: var(--primary);
    color: var(--primary);
}
.time-chip i { font-size: 13px; }

/* ===== Submit Button ===== */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 24px rgba(22,162,73,0.3);
}
.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
}
.submit-btn:hover:not(:disabled) {
    background: var(--primary-light);
    /* transform: translateY(-1px); */
    box-shadow: 0 8px 32px rgba(22,162,73,0.4);
}
.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}
.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.submit-btn.loading .btn-spinner { display: block; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-icon { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Disclaimer ===== */
.disclaimer {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}
.disclaimer i { color: var(--primary); margin-right: 3px; }

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: auto;
    animation: slideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.toast.success::before { background: var(--primary); }
.toast.error::before { background: var(--error); }
.toast.loading::before { background: #f0a500; }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast.success .toast-icon { color: var(--primary); }
.toast.error .toast-icon { color: var(--error); }
.toast.loading .toast-icon { color: #f0a500; }

.toast-body { flex: 1; }
.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.toast-msg {
    font-size: 12px;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--text); }

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateX(120%); }
}

/* ===== Progress dots ===== */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}
.dot-step {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: var(--border);
    transition: var(--transition);
}
.dot-step.active {
    background: var(--primary);
    width: 24px;
}
.logo-top{
    width: 200px;
    height: auto;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .page-wrap{
        padding: 0px !important;
    }
    .form-card {
        border-radius: 0px !important;
    }
    .logo-top{ width: 170px}
    .card-header { padding: 60px 24px 0px; }
    .card-body { padding: 28px 24px 32px; }
    .card-header h1 { font-size: 22px; }
    .grid-2 { grid-template-columns: 1fr; }
    .phone-row { grid-template-columns: 110px 1fr; }
    .trust-row { gap: 12px; }
    .toast { min-width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
    .toast-container { right: 12px; top: 12px; }
    .bg-canvas::before {
        background: radial-gradient(circle, #16a2492a 0%, transparent 65%);
    }
    .err-msg{
        font-size: 10px;
    }
    .card-header p{
        font-size: 12px;
    }
}

/* ===== Valid indicator ===== */
.input-wrap .valid-check {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
}
.input-wrap.is-valid .valid-check { opacity: 1; }
.input-wrap.is-valid input,
.input-wrap.is-valid select { padding-right: 40px; }




.date-scroll-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-top: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-scroll-container::-webkit-scrollbar {
  display: none;
}
.date-boxes-wrapper {
  display: flex;
  gap: 12px;
  padding: 6px 2px 10px 2px;
}
.date-box {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(13,71,61,0.15);
  transition: all 0.2s ease;
}
.date-box .day-name {
  font-weight: 300;
  color: #b0b0b0;
  font-size: 10px;
  text-transform: uppercase;
}
.date-box .date-full {
  font-size: 14px;
  color: #313131;
  font-weight: 400;
  margin-top: 4px;
}
.date-box:hover {
  background: linear-gradient(135deg, #0d4740, #16A249);
  border-color: #ffffff;
}
.date-box:hover .date-full,
.date-box:hover .day-name {
    color: #fff;
}
.date-box.selected {
  background: linear-gradient(135deg, #0d4740, #16A249);
  border-color: #ffffff;
}
.date-box.selected .day-name,
.date-box.selected .date-full {
  color: white;
}


.language-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    position: absolute;
    top: 16px;
    right: 16px;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    font-weight: 500;
}
.lang-link .txt{
    font-size: 10px;
}

.lang-link img {
    width: 16px;
    height: auto;
}

.lang-link:hover {
    background: #e9e9e9;
    background: #d8d8d8;
}

.lang-link.active {
    background: #10863b;
    color: #fff;
}


body.ar{
    direction: rtl !important;
}
body.ar .language-switcher{
    right: unset !important;
    left: 16px;
}
body.ar .phone-row{
    direction: ltr !important;
}