/* ── CoActive Demo Form – Public Styles ──────────────────────────────────── */
.cad-form-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Success ─────────────────────────────────────────────────────────────── */
.cad-success {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(26,58,108,.12);
    max-width: 480px;
    margin: 0 auto;
}
.cad-success-logo        { margin-bottom: 16px; }
.cad-success-logo img    { max-width: 200px; height: auto; }
.cad-success-check       { font-size: 44px; margin-bottom: 10px; }
.cad-success h2          { margin: 0 0 8px; font-size: 24px; color: #1a3a6c; }
.cad-success p           { color: #6b7280; margin: 6px 0; }
.cad-success-time        {
    background: #eef2ff; border-radius: 12px;
    display: inline-block; padding: 10px 24px;
    font-weight: 700; font-size: 17px; color: #1a3a6c;
    margin: 12px 0 16px;
}
.cad-success-note        { font-size: 13px !important; }
.cad-success-list        { background: #f9fafb; border-radius: 12px; padding: 16px; text-align: left; margin-top: 16px; }
.cad-success-item        { font-size: 13px; color: #374151; padding: 4px 0; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.cad-progress {
    display: flex; align-items: center;
    padding: 18px 28px;
    background: linear-gradient(135deg, #1a3a6c, #2a5298);
    border-radius: 16px 16px 0 0;
}
.cad-step        { display: flex; align-items: center; gap: 8px; }
.cad-step-num    {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.22); color: rgba(255,255,255,.65);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0; transition: all .2s;
}
.cad-step-label  { font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; transition: all .2s; }
.cad-step-active .cad-step-num   { background: #fff; color: #1a3a6c; }
.cad-step-active .cad-step-label { color: #fff; font-weight: 600; }
.cad-step-done .cad-step-num     { background: #e8793a; color: #fff; }
.cad-step-done .cad-step-label   { color: rgba(255,255,255,.65); }
.cad-step-line   { flex: 1; height: 1px; background: rgba(255,255,255,.2); margin: 0 10px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.cad-booking { background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(26,58,108,.1); overflow: hidden; }
.cad-layout  { display: flex; min-height: 480px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cad-sidebar {
    width: 250px; flex-shrink: 0;
    background: #f8f9fc; border-right: 1px solid #e8edf5;
    padding: 28px 22px;
}
.cad-brand-logo-img     { margin-bottom: 18px; }
.cad-brand-logo-img img { max-width: 190px; width: 100%; height: auto; display: block; }
.cad-meeting-title      { font-size: 15px; font-weight: 700; color: #1a3a6c; margin: 0 0 10px; line-height: 1.4; }
.cad-meta               { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.cad-meta-date,
.cad-meta-time          { color: #1a3a6c; font-weight: 600; }
.cad-divider            { border-top: 1px solid #e2e8f0; margin: 16px 0; }
.cad-about              { font-size: 12px; color: #6b7280; line-height: 1.6; margin: 0 0 14px; }
.cad-tz-wrap            { display: flex; align-items: flex-start; gap: 5px; }
.cad-tz-label           { font-size: 11px; color: #9ca3af; line-height: 1.4; word-break: break-all; }

/* ── Main area ───────────────────────────────────────────────────────────── */
.cad-main        { flex: 1; padding: 28px; min-width: 0; }
.cad-panel-title { font-size: 17px; font-weight: 700; color: #1a3a6c; margin: 0 0 6px; }

/* ── Calendar ────────────────────────────────────────────────────────────── */
.cad-step1-layout { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.cad-calendar {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 18px; min-width: 270px;
}
.cad-cal-nav    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cad-cal-nav button {
    width: 30px; height: 30px; border: 1px solid #e2e8f0;
    background: #fff; border-radius: 7px; cursor: pointer;
    font-size: 18px; color: #374151; line-height: 1; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.cad-cal-nav button:hover { background: #eef2ff; border-color: #bcd0f5; }
.cad-cal-month-label { font-weight: 600; font-size: 14px; color: #1a3a6c; }
.cad-cal-weekdays {
    display: grid; grid-template-columns: repeat(7,1fr);
    gap: 2px; margin-bottom: 6px;
}
.cad-cal-weekdays span { text-align: center; font-size: 11px; font-weight: 600; color: #9ca3af; padding: 3px 0; }
.cad-cal-days    { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cad-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 7px; font-size: 13px; cursor: pointer;
    border: none; background: transparent; color: #374151;
    transition: all .15s; padding: 0;
}
.cad-cal-day:hover:not(.disabled):not(.selected) { background: #eef2ff; color: #1a3a6c; }
.cad-cal-day.today    { background: #fef3e8; color: #e8793a; font-weight: 600; }
.cad-cal-day.selected { background: #1a3a6c; color: #fff; font-weight: 700; }
.cad-cal-day.disabled { color: #d1d5db; cursor: not-allowed; }

/* ── Time slots ──────────────────────────────────────────────────────────── */
.cad-timeslots-wrap  { flex: 1; min-width: 160px; }
.cad-timeslots-title { font-weight: 600; font-size: 14px; color: #1a3a6c; margin-bottom: 10px; }
.cad-timeslots       { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.cad-timeslots::-webkit-scrollbar       { width: 4px; }
.cad-timeslots::-webkit-scrollbar-thumb { background: #bcd0f5; border-radius: 4px; }
.cad-no-slots {
    font-size: 13px; color: #6b7280; text-align: center;
    padding: 20px 12px; background: #f8f9fc;
    border: 1px dashed #d1d5db; border-radius: 8px;
    line-height: 1.6; margin: 0;
}
.cad-slot {
    display: block; width: 100%; padding: 9px 14px; margin-bottom: 6px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #374151;
    font-size: 13px; cursor: pointer; text-align: center;
    transition: all .15s; font-family: inherit;
}
.cad-slot:hover    { border-color: #93b4e8; background: #eef2ff; color: #1a3a6c; }
.cad-slot.cad-slot-selected { border-color: #1a3a6c; background: #1a3a6c; color: #fff; font-weight: 600; }
.cad-slot.cad-slot-booked {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px 9px 14px;
    opacity: 1;
}
.cad-slot-booked-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #fecaca;
    color: #dc2626;
    border-radius: 4px;
    padding: 2px 6px;
}
.cad-slots-loading {
    font-size: 13px; color: #9ca3af; text-align: center;
    padding: 24px 12px; margin: 0;
}

/* ── Form grid ───────────────────────────────────────────────────────────── */
.cad-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cad-field     { display: flex; flex-direction: column; gap: 5px; }
.cad-field label { font-size: 12px; font-weight: 600; color: #374151; }
.cad-field .req  { color: #ef4444; }

.cad-field input,
.cad-field select,
.cad-field textarea {
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px !important; color: #1f2937;
    font-family: inherit; outline: none;
    transition: border .15s, box-shadow .15s;
    background: #fff; width: 100%; box-sizing: border-box;
}
.cad-field input:focus,
.cad-field select:focus,
.cad-field textarea:focus { border-color: #93b4e8; box-shadow: 0 0 0 3px rgba(147,180,232,.2); }
.cad-field textarea { resize: vertical; }

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE + COUNTRY CODE  — single unified border box
═══════════════════════════════════════════════════════════════════════════ */
.cad-field-phone-row { grid-column: span 2; }

/* The outer border container */
.cad-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: visible;     /* allow dropdown to escape */
    position: relative;
    transition: border-color .15s, box-shadow .15s;
}
.cad-phone-wrap:focus-within {
    border-color: #93b4e8;
    box-shadow: 0 0 0 3px rgba(147,180,232,.2);
}

/* Country selector pill (left side) */
.cad-country-selector {
    position: relative;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    background: #f4f7fb;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}
.cad-country-selected {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 10px;
    min-width: 86px;
    height: 100%;
    box-sizing: border-box;
}
.cad-country-selector:hover .cad-country-selected { background: #eef2ff; }

.cad-flag     { font-size: 18px; line-height: 1; flex-shrink: 0; }
.cad-dialcode { font-size: 13px; font-weight: 600; color: #1a3a6c; }
.cad-chevron  { font-size: 9px; color: #9ca3af; margin-left: 2px; }

/* Dropdown */
.cad-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.16);
    width: 280px;
    overflow: hidden;
}
.cad-country-search {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
.cad-country-list {
    max-height: 220px;
    overflow-y: auto;
}
.cad-country-list::-webkit-scrollbar       { width: 4px; }
.cad-country-list::-webkit-scrollbar-thumb { background: #c7d7ed; border-radius: 4px; }
.cad-country-option {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; cursor: pointer;
    font-size: 13px; color: #374151; transition: background .1s;
}
.cad-country-option:hover { background: #f0f4fb; }
.co-flag  { font-size: 18px; flex-shrink: 0; }
.co-name  { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.co-code  { font-size: 12px; color: #6b7280; font-weight: 600; flex-shrink: 0; }

/* Phone number text input */
.cad-phone-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    color: #1f2937 !important;
}

/* ── Checkboxes ──────────────────────────────────────────────────────────── */
.cad-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cad-check {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer;
    font-size: 12px; color: #374151; transition: all .15s;
}
.cad-check:hover { border-color: #93b4e8; background: #eef2ff; }
.cad-check input { width: 15px; height: 15px; accent-color: #1a3a6c; flex-shrink: 0; cursor: pointer; }
.cad-check input:checked + span { color: #1a3a6c; font-weight: 600; }
.cad-check:has(input:checked)   { border-color: #1a3a6c; background: #eef2ff; }

/* ── Review ──────────────────────────────────────────────────────────────── */
.cad-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cad-review-item { background: #f8f9fc; border-radius: 9px; padding: 9px 13px; }
.cad-review-full { grid-column: span 2; }
.cad-review-label { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.cad-review-value { font-size: 13px; color: #1f2937; font-weight: 500; }
.cad-review-notice {
    margin-top: 14px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 9px; padding: 11px 14px;
    font-size: 12px; color: #92400e;
}

/* ── Navigation buttons ──────────────────────────────────────────────────── */
.cad-step-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 24px; padding-top: 18px; border-top: 1px solid #f0f0f0;
}
.cad-btn-primary {
    background: linear-gradient(135deg, #1a3a6c, #2a5298) !important;
    color: #fff !important; border: none !important; border-radius: 10px !important;
    padding: 11px 26px !important; font-size: 14px !important; font-weight: 600 !important;
    cursor: pointer !important; transition: opacity .15s !important; font-family: inherit !important;
}
.cad-btn-primary:disabled         { opacity: .4 !important; cursor: not-allowed !important; }
.cad-btn-primary:hover:not(:disabled) { opacity: .87 !important; }
.cad-btn-secondary {
    background: #fff !important; color: #374151 !important;
    border: 1px solid #e2e8f0 !important; border-radius: 10px !important;
    padding: 10px 20px !important; font-size: 14px !important;
    cursor: pointer !important; font-family: inherit !important;
}
.cad-btn-secondary:hover { background: #f8f9fc !important; }

/* ── Error message ───────────────────────────────────────────────────────── */
.cad-error-msg {
    background: #fee2e2; border: 1px solid #fca5a5;
    border-radius: 8px; padding: 10px 14px;
    color: #991b1b; font-size: 13px; margin-top: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .cad-layout           { flex-direction: column; }
    .cad-sidebar          { width: auto; border-right: none; border-bottom: 1px solid #e8edf5; padding: 20px 18px; }
    .cad-main             { padding: 20px 16px; }
    .cad-form-grid        { grid-template-columns: 1fr; }
    .cad-checkboxes       { grid-template-columns: 1fr; }
    .cad-review-grid      { grid-template-columns: 1fr; }
    .cad-review-full      { grid-column: span 1; }
    .cad-step1-layout     { flex-direction: column; }
    .cad-progress         { padding: 14px 16px; border-radius: 12px 12px 0 0; flex-wrap: wrap; gap: 4px; }
    .cad-step-line        { display: none; }
    .cad-field-phone-row  { grid-column: span 1; }
    .cad-country-dropdown { width: 240px; }
    .cad-brand-logo-img img { max-width: 150px; }
}
