/**
 * Swishin CRM — Multi-step Inquiry Form Styles
 * Scoped under .swishin-form-shell to avoid Elementor conflicts.
 */

/* ── Fonts ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Tokens ───────────────────────────────────────────────────────────────── */
.swishin-form-shell {
    --sw-dark:        #1a1a2e;
    --sw-dark2:       #16213e;
    --sw-gold:        #c9a96e;
    --sw-gold-light:  #e8d5b0;
    --sw-cream:       #fdf8ef;
    --sw-white:       #ffffff;
    --sw-gray:        #f8f7f4;
    --sw-gray2:       #e8e4dc;
    --sw-text:        #2a2a3a;
    --sw-text-muted:  #888888;
    --sw-error:       #e74c6f;
    --sw-success:     #27ae60;
    --sw-radius:      14px;
    --sw-radius-sm:   10px;
    --sw-shadow:      0 30px 80px rgba(26,26,46,0.14);
    --sw-trans:       0.32s cubic-bezier(.4,0,.2,1);
}

.swishin-form-shell *,
.swishin-form-shell *::before,
.swishin-form-shell *::after {
    box-sizing: border-box;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.swishin-form-shell {
    font-family: 'DM Sans', sans-serif;
    color: var(--sw-text);
    max-width: 720px;
    margin: 40px auto;
    background: var(--sw-white);
    border-radius: 24px;
    box-shadow: var(--sw-shadow);
    padding: 48px 56px 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .swishin-form-shell {
        padding: 32px 22px 28px;
        margin: 16px;
        border-radius: 18px;
    }
}

/* ── Decorative SVG (top-right) ───────────────────────────────────────────── */
.swishin-form-decor {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    color: var(--sw-gold);
    opacity: 0.6;
    pointer-events: none;
}

/* ── Step pill track ──────────────────────────────────────────────────────── */
.swishin-step-track {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.swishin-step-pill {
    flex: 1;
    height: 4px;
    background: var(--sw-gray2);
    border-radius: 2px;
    transition: background var(--sw-trans);
}

.swishin-step-pill.active,
.swishin-step-pill.done {
    background: var(--sw-gold);
}

/* ── Step meta line ───────────────────────────────────────────────────────── */
.swishin-step-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--sw-text-muted);
    margin-bottom: 36px;
}

.swishin-step-meta .l b {
    color: var(--sw-dark);
    font-weight: 700;
}

.swishin-step-meta .r {
    color: var(--sw-gold);
    font-weight: 600;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.swishin-step {
    display: none;
    animation: swishinSlide 0.4s ease forwards;
}

.swishin-step.on {
    display: block;
}

@keyframes swishinSlide {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.swishin-step h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--sw-dark);
    letter-spacing: 0.3px;
}

.swishin-step h3 em {
    font-style: italic;
    color: var(--sw-gold);
}

.swishin-step > p {
    color: var(--sw-text-muted);
    font-size: 14px;
    margin: 0 0 26px;
    font-weight: 300;
}

/* ── Field grids ──────────────────────────────────────────────────────────── */
.swishin-field-grid {
    display: grid;
    gap: 18px;
}

.swishin-field-grid.two {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
    .swishin-field-grid.two { grid-template-columns: 1fr; }
}

.swishin-field {
    display: block;
}

.swishin-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--sw-text-muted);
    margin-bottom: 8px;
}

.swishin-field .req {
    color: var(--sw-error);
    margin-left: 3px;
}

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.swishin-form-shell input[type="text"],
.swishin-form-shell input[type="email"],
.swishin-form-shell input[type="tel"],
.swishin-form-shell input[type="date"],
.swishin-form-shell input[type="number"],
.swishin-form-shell input[type="url"],
.swishin-form-shell select,
.swishin-form-shell textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sw-gray2);
    border-radius: var(--sw-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--sw-text);
    background: var(--sw-gray);
    transition: var(--sw-trans);
    appearance: none;
    -webkit-appearance: none;
}

.swishin-form-shell select {
    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='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.swishin-form-shell input:focus,
.swishin-form-shell select:focus,
.swishin-form-shell textarea:focus {
    outline: none;
    border-color: var(--sw-gold);
    background: var(--sw-white);
    box-shadow: 0 0 0 4px rgba(201,169,110,0.14);
}

.swishin-form-shell textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Errors ───────────────────────────────────────────────────────────────── */
.swishin-field.is-error input,
.swishin-field.is-error select,
.swishin-field.is-error textarea {
    border-color: var(--sw-error);
    background: #fff8f9;
}

.swishin-error-msg {
    display: block;
    color: var(--sw-error);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

@keyframes swishinShake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-6px); }
    40%,80% { transform: translateX(6px); }
}

.swishin-shake { animation: swishinShake 0.4s ease; }

/* ── Chips (event type) ───────────────────────────────────────────────────── */
.swishin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swishin-chips-binary {
    flex-wrap: nowrap;
    max-width: 420px;
}

.swishin-chips-binary .swishin-chip {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.swishin-hint {
    color: #aaa;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    margin-left: 4px;
}

.swishin-chip {
    cursor: pointer;
    padding: 11px 18px;
    border: 2px solid var(--sw-gray2);
    border-radius: 100px;
    background: var(--sw-gray);
    font-size: 13px;
    font-weight: 500;
    color: var(--sw-text);
    transition: var(--sw-trans);
    user-select: none;
    line-height: 1;
}

.swishin-chip input {
    display: none;
}

.swishin-chip:hover {
    border-color: var(--sw-gold-light);
}

.swishin-chip.is-selected,
.swishin-chip:has(input:checked) {
    background: var(--sw-cream);
    border-color: var(--sw-gold);
    color: var(--sw-dark);
    box-shadow: 0 0 0 4px rgba(201,169,110,0.14);
    font-weight: 600;
}

/* ── Conditional date range block ─────────────────────────────────────────── */
.swishin-date-range {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.swishin-date-range.on {
    display: grid;
}

@media (max-width: 600px) {
    .swishin-date-range.on { grid-template-columns: 1fr; }
}

/* ── Budget display + slider ──────────────────────────────────────────────── */
.swishin-budget-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--sw-dark);
}

.swishin-budget-display .ru {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: var(--sw-gold);
    font-weight: 600;
}

.swishin-budget-display #swishinBudgetVal {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.swishin-budget-range {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--sw-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.swishin-form-shell input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--sw-gray2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.swishin-form-shell input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--sw-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(201,169,110,0.5);
    transition: transform 0.2s;
    border: 3px solid #fff;
}

.swishin-form-shell input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.swishin-form-shell input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--sw-gold);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(201,169,110,0.5);
}

/* ── Nav bar ──────────────────────────────────────────────────────────────── */
.swishin-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 12px;
}

.swishin-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: var(--sw-trans);
    padding: 14px 32px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.swishin-btn-back {
    background: transparent;
    color: var(--sw-text-muted);
    border: 2px solid var(--sw-gray2);
    padding: 12px 26px;
}

.swishin-btn-back:hover:not(:disabled) {
    border-color: var(--sw-gold);
    color: var(--sw-dark);
}

.swishin-btn-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.swishin-btn-next {
    background: linear-gradient(135deg, var(--sw-dark) 0%, var(--sw-dark2) 100%);
    color: var(--sw-gold);
}

.swishin-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26,26,46,0.28);
}

.swishin-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.swishin-btn-next .arrow {
    transition: transform 0.25s;
}

.swishin-btn-next:hover .arrow {
    transform: translateX(4px);
}

/* ── Form-level error banner ──────────────────────────────────────────────── */
.swishin-form-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}

/* ── Done state ───────────────────────────────────────────────────────────── */
.swishin-done-state {
    display: none;
    text-align: center;
    padding: 30px 10px 10px;
    animation: swishinFade 0.55s ease;
}

.swishin-done-state.on { display: block; }

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

.swishin-done-mark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sw-gold), var(--sw-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(201,169,110,0.4);
}

.swishin-done-state h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--sw-dark);
    margin: 0 0 12px;
    font-weight: 600;
}

.swishin-done-state h3 em {
    color: var(--sw-gold);
    font-style: italic;
}

.swishin-done-state p {
    color: var(--sw-text-muted);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.7;
}

.swishin-ref-num {
    background: var(--sw-dark);
    color: var(--sw-gold);
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
}

/* ── Confetti ─────────────────────────────────────────────────────────────── */
@keyframes swishinConfettiFall {
    0%   { transform: translateY(-20px) rotate(0);    opacity: 1; }
    100% { transform: translateY(360px) rotate(540deg); opacity: 0; }
}

/* ── Tentative date informational note ───────────────────────────────────── */
.swishin-tentative-note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 14px 18px;
    color: #8d6e00;
    font-size: 13px;
    line-height: 1.55;
}

.swishin-tentative-note strong {
    color: var(--sw-dark);
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

/* ── Inline alert (validation + status) ───────────────────────────────────── */
.swishin-alert {
    display: none;
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'DM Sans', sans-serif;
    border: 1px solid transparent;
}

.swishin-alert.show { display: block; }

.swishin-alert.error {
    background: #fdecea;
    border-color: #f5c2c0;
    color: #9b1b1b;
}

.swishin-alert.success {
    background: #eaf6ec;
    border-color: #b9dec1;
    color: #1f5b30;
}

/* ── Confetti burst ──────────────────────────────────────────────────────── */
.swishin-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.swishin-confetti span {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.9;
    animation: swishin-fall linear forwards;
    transform: translateY(0) rotate(0deg);
}

@keyframes swishin-fall {
    to {
        transform: translateY(110vh) rotate(540deg);
        opacity: 0;
    }
}

/* swishin-form-shell needs relative positioning so .swishin-confetti can absolute-fill it */
.swishin-form-shell { position: relative; }
