/* ============================================================
   BulgariaJourney Itinerary — Frontend Styles
   Brand: Deep Blue and Tan
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bgji-primary:    #2d545e;
    --bgji-primary-dk: #12343b;
    --bgji-accent:     #e1b382;
    --bgji-accent-dk:  #c89666;
    --bgji-coral:      #f87171;
    --bgji-bg:         #f5f0eb;
    --bgji-white:      #ffffff;
    --bgji-text:       #1e293b;
    --bgji-muted:      #64748b;
    --bgji-border:     #cbd5e1;
    --bgji-radius:     10px;
    --bgji-shadow:     0 2px 12px rgba(45,84,94,0.10);
}

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

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

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

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

.bgji-section--optin {
    background: #faf6f1;
    border-color: #e1b382;
}

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

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

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

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

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

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

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

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

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

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

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

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

.bgji-btn-submit {
    display: inline-block;
    background: linear-gradient(135deg, var(--bgji-accent), var(--bgji-accent-dk));
    color: var(--bgji-primary-dk);
    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(200,150,102,0.35);
    letter-spacing: 0.3px;
}
.bgji-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,150,102,0.45);
}
.bgji-btn-submit:active { transform: translateY(0); }
.bgji-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

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

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

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

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

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

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

.bgji-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;
}
.bgji-action-buttons { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bgji-btn--view {
    background: #2d545e;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(45,84,94,0.40);
    min-width: 160px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: none;
}
.bgji-btn--view:hover {
    background: #12343b;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.bgji-btn--download {
    background: #c89666;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(200,150,102,0.40);
    min-width: 160px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: none;
}
.bgji-btn--download:hover {
    background: #b5824f;
    transform: translateY(-1px);
    color: #ffffff !important;
}

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

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

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

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

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