/* ============================================================
   Vacationian Itinerary — Frontend Styles
   Brand: sky blue, sunshine yellow, coral pink, lime green
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --vcni-blue:    #0ea5e9;
    --vcni-blue-dk: #0284c7;
    --vcni-yellow:  #fbbf24;
    --vcni-coral:   #f87171;
    --vcni-green:   #84cc16;
    --vcni-bg:      #f0f9ff;
    --vcni-white:   #ffffff;
    --vcni-text:    #1e293b;
    --vcni-muted:   #64748b;
    --vcni-border:  #cbd5e1;
    --vcni-radius:  10px;
    --vcni-shadow:  0 2px 12px rgba(14,165,233,0.10);
}

/* ── Form wrap ─────────────────────────────────────────────── */
.vcni-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Notices ───────────────────────────────────────────────── */
.vcni-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--vcni-radius);
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
}
.vcni-notice--success {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #065f46;
}
.vcni-notice--error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}
.vcni-notice__icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.vcni-notice ul   { margin: 8px 0 0; padding-left: 20px; }
.vcni-notice li   { margin-bottom: 4px; }

/* ── Form sections ─────────────────────────────────────────── */
.vcni-form {
    background: var(--vcni-white);
    border-radius: 14px;
    box-shadow: var(--vcni-shadow);
    overflow: hidden;
    border: 1.5px solid #e0f2fe;
}

.vcni-section {
    padding: 28px 32px;
    border-bottom: 1.5px solid #e0f2fe;
}
.vcni-section:last-of-type { border-bottom: none; }

.vcni-section--optin {
    background: #fefce8;
    border-color: #fde68a;
}

.vcni-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vcni-text);
    margin: 0 0 20px;
    padding: 0;
}

/* ── Grid layouts ──────────────────────────────────────────── */
.vcni-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.vcni-row:last-child { margin-bottom: 0; }
.vcni-row--1 .vcni-field { flex: 1 1 100%; }
.vcni-row--2 .vcni-field { flex: 1 1 calc(50% - 9px); min-width: 200px; }
.vcni-row--3 .vcni-field { flex: 1 1 calc(33% - 12px); min-width: 160px; }

/* ── Fields ────────────────────────────────────────────────── */
.vcni-field { display: flex; flex-direction: column; }

.vcni-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vcni-text);
    margin-bottom: 6px;
}
.vcni-field label small {
    font-weight: 400;
    color: var(--vcni-muted);
    font-size: 12px;
}
.vcni-field .req { color: var(--vcni-coral); }

.vcni-field input[type="text"],
.vcni-field input[type="email"],
.vcni-field input[type="date"],
.vcni-field select,
.vcni-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--vcni-border);
    border-radius: 7px;
    font-size: 14px;
    color: var(--vcni-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.vcni-field input:focus,
.vcni-field select:focus,
.vcni-field textarea:focus {
    outline: none;
    border-color: var(--vcni-blue);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.vcni-field textarea { resize: vertical; min-height: 80px; }

/* ── Radio groups ──────────────────────────────────────────── */
.vcni-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vcni-radio-group--vertical {
    flex-direction: column;
    gap: 10px;
}
.vcni-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--vcni-text);
    line-height: 1.4;
}
.vcni-radio input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--vcni-blue);
    flex-shrink: 0;
}

/* Pill-style for horizontal radio (travel style) */
.vcni-radio-group:not(.vcni-radio-group--vertical) .vcni-radio {
    background: #f8fafc;
    border: 1.5px solid var(--vcni-border);
    border-radius: 20px;
    padding: 6px 14px;
    transition: border-color 0.2s, background 0.2s;
}
.vcni-radio-group:not(.vcni-radio-group--vertical) .vcni-radio:has(input:checked) {
    border-color: var(--vcni-blue);
    background: #e0f2fe;
    color: var(--vcni-blue-dk);
    font-weight: 600;
}

/* ── Checkbox groups ───────────────────────────────────────── */
.vcni-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vcni-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 14px;
    background: #f8fafc;
    border: 1.5px solid var(--vcni-border);
    border-radius: 7px;
    padding: 7px 12px;
    transition: border-color 0.2s, background 0.2s;
}
.vcni-checkbox input { accent-color: var(--vcni-blue); }
.vcni-checkbox:has(input:checked) {
    border-color: var(--vcni-blue);
    background: #e0f2fe;
    color: var(--vcni-blue-dk);
    font-weight: 600;
}

/* Opt-in checkboxes */
.vcni-optin-list { display: flex; flex-direction: column; gap: 12px; }
.vcni-checkbox--optin {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 14px;
    color: var(--vcni-text);
}
.vcni-checkbox--optin:has(input:checked) {
    background: transparent;
    border: none;
    color: var(--vcni-text);
    font-weight: normal;
}

/* ── Consent + Submit ──────────────────────────────────────── */
.vcni-consent {
    padding: 20px 32px 0;
    font-size: 13px;
    color: var(--vcni-muted);
    line-height: 1.6;
}

.vcni-submit-wrap {
    padding: 24px 32px 32px;
    text-align: center;
}

.vcni-btn-submit {
    display: inline-block;
    background: linear-gradient(135deg, var(--vcni-blue), var(--vcni-blue-dk));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
    letter-spacing: 0.3px;
}
.vcni-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.45);
}
.vcni-btn-submit:active { transform: translateY(0); }
.vcni-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.vcni-submit-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--vcni-muted);
}

/* ── GeneratePress gap fix ─────────────────────────────────── */
/* Remove large top padding GeneratePress adds between page title and content */
.vcni-form-wrap,
.vcni-dashboard {
    margin-top: -20px;
}

/* ── Dashboard header ──────────────────────────────────────── */
.vcni-dashboard { max-width: 820px; margin: 0 auto; }

.vcni-dashboard__header {
    margin-bottom: 20px;
}
.vcni-dashboard__welcome { color: var(--vcni-muted); margin: 0; font-size: 15px; }

.vcni-dashboard__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.vcni-itin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--vcni-white);
    border: 1.5px solid #e0f2fe;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--vcni-shadow);
    gap: 20px;
    flex-wrap: wrap;
}
.vcni-itin-card--pdf_done { border-color: #6ee7b7; }
.vcni-itin-card--failed    { border-color: #fca5a5; }

.vcni-itin-card__dest  { font-size: 18px; font-weight: 700; color: var(--vcni-text); margin: 0 0 6px; }
.vcni-itin-card__dates { font-size: 14px; color: var(--vcni-blue); margin: 0 0 4px; font-weight: 600; }
.vcni-itin-card__meta  { font-size: 13px; color: var(--vcni-muted); margin: 0 0 4px; }
.vcni-itin-card__requested { font-size: 12px; color: #94a3b8; margin: 0; }

.vcni-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.vcni-action-buttons { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.vcni-btn--view {
    background: #0369a1;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(3,105,161,0.40);
    min-width: 160px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: none;
}
.vcni-btn--view:hover {
    background: #075985;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.vcni-btn--download {
    background: #15803d;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(21,128,61,0.40);
    min-width: 160px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: none;
}
.vcni-btn--download:hover {
    background: #166534;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.vcni-status { font-size: 14px; font-weight: 600; }
.vcni-status--pending { color: var(--vcni-blue); }
.vcni-status--failed  { color: var(--vcni-coral); }
.vcni-status__note    { font-size: 12px; color: var(--vcni-muted); margin: 6px 0 0; }

.vcni-dashboard__offers {
    min-height: 20px;
    margin-bottom: 24px;
}

.vcni-dashboard__cta { font-size: 14px; color: var(--vcni-muted); text-align: center; }
.vcni-dashboard__cta a { color: var(--vcni-blue); font-weight: 600; }

.vcni-dashboard__empty { text-align: center; padding: 40px 20px; color: var(--vcni-muted); }
.vcni-dashboard__empty .vcni-btn {
    background: var(--vcni-blue);
    color: #fff;
    margin-top: 16px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .vcni-section { padding: 20px 18px; }
    .vcni-row--2 .vcni-field,
    .vcni-row--3 .vcni-field { flex: 1 1 100%; }
    .vcni-submit-wrap { padding: 16px 18px 24px; }
    .vcni-consent { padding: 16px 18px 0; }
    .vcni-btn-submit { padding: 14px 28px; font-size: 15px; }
    .vcni-itin-card { flex-direction: column; align-items: flex-start; }
}
