/* ==========================================================
   CHARUTA – Landing page styles
   Colours taken from the logo
   ========================================================== */
:root {
    --rose: #d44863;
    --rose-dark: #b8344f;
    --rose-soft: #f9dfe3;
    --gold: #d8a436;
    --gold-dark: #b4831c;
    --maroon: #7e1f1f;
    --blush: #fbf1ee;
    --cream: #fffaf8;
    --text: #3d2b2b;
    --muted: #8a6f6a;
    --line: #efd9d3;
    --error: #c30101;
    --radius: 14px;
    --shadow: 0 18px 50px -18px rgba(126, 31, 31, .28);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    color: var(--text);
    background: radial-gradient(ellipse at 20% 0%, #fff7f3 0%, var(--blush) 55%, #f7e6e1 100%);
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Background decoration ---------- */
.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: #f6cfd6; top: -140px; left: -120px; }
.blob-2 { width: 360px; height: 360px; background: #f6e2b8; bottom: -120px; right: -100px; opacity: .45; }
.blob-3 { width: 260px; height: 260px; background: #fbe0e4; top: 40%; right: 12%; opacity: .35; }
.sparkle { position: absolute; color: var(--gold); opacity: .55; animation: twinkle 4s ease-in-out infinite; font-size: 14px; }
.s1 { top: 14%; left: 12%; }
.s2 { top: 22%; right: 14%; animation-delay: 1.2s; font-size: 10px; color: var(--rose); }
.s3 { bottom: 20%; left: 8%; animation-delay: 2.1s; font-size: 18px; }
.s4 { bottom: 12%; right: 22%; animation-delay: .6s; font-size: 11px; color: var(--rose); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .7; transform: scale(1.1); } }

/* ---------- Landing ---------- */
.landing {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px 40px;
    text-align: center;
}
.logo-wrap { margin: -30px 0 -26px; width: 100%; max-width: 760px; animation: fadeUp .9s ease both; }
.logo { width: 100%; height: auto; mix-blend-mode: multiply; }
.logo-wrap picture { display: block; }
.intro {
    margin: clamp(40px, 9vh, 110px) 0 30px;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp .9s .15s ease both;
}
.intro .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(212, 72, 99, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 72, 99, .55); } 70% { box-shadow: 0 0 0 10px rgba(212, 72, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 72, 99, 0); } }

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
    width: 100%;
    max-width: 700px;
    animation: fadeUp .9s .3s ease both;
}
.actions .btn { min-height: 64px; padding: 14px 26px; font-size: 17.5px; gap: 12px; }
.actions .btn svg { width: 23px; height: 23px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn svg .fill, .btn svg.fill { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(212, 72, 99, .35); outline-offset: 3px; }

.btn-primary { background: linear-gradient(135deg, #de5a74, var(--rose) 50%, var(--rose-dark)); color: #fff; box-shadow: 0 10px 24px -10px rgba(212, 72, 99, .8); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(212, 72, 99, .9); }
.btn-gold { background: linear-gradient(135deg, #e6b956, var(--gold) 50%, var(--gold-dark)); color: #fff; box-shadow: 0 10px 24px -10px rgba(180, 131, 28, .8); text-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.btn-gold:hover { box-shadow: 0 14px 30px -10px rgba(180, 131, 28, .9); }
.btn-outline { background: rgba(255, 255, 255, .65); border-color: var(--line); color: var(--maroon); backdrop-filter: blur(6px); }
.btn-outline:hover { background: #fff; border-color: var(--rose); color: var(--rose); }
.btn-fb:hover { border-color: #1877f2; color: #1877f2; }
.btn-ig:hover { border-color: #d62976; color: #d62976; }
.btn-block { width: 100%; }

.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { position: relative; z-index: 1; text-align: center; font-size: 12.5px; color: var(--muted); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(61, 22, 28, .45); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
.modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cream);
    border-radius: 22px;
    box-shadow: var(--shadow);
    animation: popIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 34px 32px 30px; -webkit-overflow-scrolling: touch; }
.modal-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 3; background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose)); border-radius: 22px 22px 0 0; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: var(--rose-soft); color: var(--rose-dark);
    font-size: 24px; line-height: 1; cursor: pointer; transition: .2s;
}
.modal-close:hover { background: var(--rose); color: #fff; transform: rotate(90deg); }

.modal-head { text-align: center; margin-bottom: 24px; padding: 0 20px; }
.modal-eyebrow { display: inline-block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 6px; }
.modal-head h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; color: var(--maroon); margin: 0 0 8px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field > label, .photo-text strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--text); }
.req { color: var(--rose); }
.opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input[type=text], input[type=tel], input[type=email], input[type=number], select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
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 d='M1 1l5 5 5-5' fill='none' stroke='%23b8344f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
input::placeholder { color: #c2aaa4; }
input:focus, select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(212, 72, 99, .12); }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.phone-input span { display: flex; align-items: center; padding: 0 10px 0 14px; color: var(--muted); font-size: 14.5px; border-right: 1px solid var(--line); background: #fdf5f2; }
.phone-input input { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.phone-input:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(212, 72, 99, .12); }

.same-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 7px; cursor: pointer; user-select: none; }
.same-check input { accent-color: var(--rose); width: 15px; height: 15px; margin: 0; }

.field.has-error input, .field.has-error select, .field.has-error .phone-input { border-color: var(--error); }
.error { display: block; color: var(--error); font-size: 12.5px; margin-top: 5px; min-height: 0; }
.error:empty { display: none; }

/* Service chips */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    height: 88px; padding: 8px 4px;
    border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
    font-size: 13px; font-weight: 500; color: var(--text); text-align: center; line-height: 1.15;
    transition: .2s; position: relative;
}
.chip svg { width: 28px; height: 28px; fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: .2s; }
.chip span::after {
    content: ''; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--line); background: #fff center/10px no-repeat; transition: .2s;
}
.chip:hover span { border-color: #e9a6b3; }
.chip input:checked + span { border-color: var(--rose); background: linear-gradient(160deg, #fff, var(--rose-soft)); color: var(--rose-dark); box-shadow: 0 6px 16px -10px rgba(212, 72, 99, .9); }
.chip input:checked + span::after { border-color: var(--rose); background-color: var(--rose); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 3px solid rgba(212, 72, 99, .3); outline-offset: 2px; }
.field.has-error .chip span { border-color: #eaa2a2; }

/* Openings */
.openings { display: grid; gap: 8px; max-height: 230px; overflow-y: auto; padding: 2px; }
.opening { cursor: pointer; display: block; }
.opening input { position: absolute; opacity: 0; pointer-events: none; }
.opening-body { display: block; padding: 11px 14px 11px 42px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; position: relative; transition: .2s; }
.opening-body::before { content: ''; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #d9bdb6; background: #fff; transition: .2s; }
.opening-body strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--maroon); }
.opening-body em { display: block; font-style: normal; font-size: 12.5px; color: var(--gold-dark); margin-top: 1px; }
.opening-body small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.opening input:checked + .opening-body { border-color: var(--rose); background: #fff7f8; }
.opening input:checked + .opening-body::before { border: 5px solid var(--rose); }
.opening input:focus-visible + .opening-body { outline: 3px solid rgba(212, 72, 99, .3); }

/* Segmented control */
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: #f6e7e3; border-radius: 12px; padding: 4px; gap: 4px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 11px 8px; border-radius: 9px; font-weight: 500; font-size: 14.5px; color: var(--muted); transition: .2s; }
.segmented input:checked + span { background: #fff; color: var(--rose-dark); box-shadow: 0 3px 10px -4px rgba(126, 31, 31, .3); }
.segmented input:focus-visible + span { outline: 2px solid var(--rose); }

.exp-fields { padding: 16px 16px 0; margin: -4px 0 18px; border: 1.5px dashed #ecc9c1; border-radius: 14px; background: #fff8f6; animation: fadeIn .3s ease; }

/* Photo picker */
.photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.photo-field { margin: 0; flex-shrink: 0; }
.photo-picker {
    width: 96px; height: 96px; border-radius: 50%;
    border: 2px dashed #e3b4ac; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; position: relative; transition: .2s;
}
.photo-picker:hover { border-color: var(--rose); background: #fff7f8; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--rose-dark); }
.photo-placeholder svg { width: 26px; height: 26px; fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linejoin: round; }
.photo-preview { width: 100%; height: 100%; object-fit: cover; }
.photo-picker.has-photo { border-style: solid; border-color: var(--gold); }
.photo-text { text-align: left; }
.photo-text strong { margin-bottom: 2px; }
.photo-text span { font-size: 12.5px; color: var(--muted); }
.photo-row.has-error .photo-picker { border-color: var(--error); }

/* File drop */
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #e3b4ac; border-radius: 12px; background: #fff; cursor: pointer; transition: .2s; }
.file-drop:hover { border-color: var(--rose); background: #fff7f8; }
.file-drop svg { width: 26px; height: 26px; fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.file-name { font-size: 13.5px; color: var(--muted); word-break: break-all; }
.file-drop.has-file { border-style: solid; border-color: var(--gold); }
.file-drop.has-file .file-name { color: var(--text); font-weight: 500; }

.form-alert { background: #fdecec; color: var(--error); border: 1px solid #f5c2c2; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }

/* Success */
.success-view { text-align: center; padding: 20px 6px 6px; animation: fadeIn .4s ease; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--rose-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--rose-soft); animation: popIn .5s cubic-bezier(.2, .9, .3, 1.4); }
.success-icon svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-view h2 { font-family: var(--serif); font-size: 32px; color: var(--maroon); margin: 0 0 10px; font-weight: 600; }
.success-view p { color: var(--muted); line-height: 1.6; margin: 0 auto 24px; max-width: 400px; }
.success-view .btn { min-width: 160px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--maroon); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; box-shadow: var(--shadow); max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .landing { padding: 8px 18px 32px; }
    .logo-wrap { max-width: 460px; margin-top: -14px; margin-bottom: -12px; }
    .intro { font-size: 11.5px; margin-top: clamp(32px, 7vh, 70px); margin-bottom: 24px; letter-spacing: .14em; }
    .actions { grid-template-columns: 1fr; gap: 18px; max-width: 420px; }
    .actions .btn { min-height: 62px; font-size: 17px; }

    .modal { padding: 0; align-items: flex-end; }
    .modal-card {
        max-width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 22px 22px 0 0;
        animation: slideUp .35s cubic-bezier(.2, .9, .3, 1);
    }
    .modal-body { padding: 30px 18px calc(24px + env(safe-area-inset-bottom)); }
    .modal-card::before { border-radius: 22px 22px 0 0; }
    @keyframes slideUp { from { transform: translateY(100%); } }
    .modal-head { padding: 0 26px; }
    .modal-head h2 { font-size: 27px; }
    .grid-2 { grid-template-columns: 1fr; }
    .chips { grid-template-columns: repeat(3, 1fr); }
    .chip span { height: 80px; }
    input[type=text], input[type=tel], input[type=email], input[type=number], select { font-size: 16px; } /* stops iOS zoom */
    .photo-picker { width: 84px; height: 84px; }
}

@media (max-width: 360px) {
    .chips { grid-template-columns: repeat(2, 1fr); }
}

@media (min-height: 900px) and (min-width: 1000px) {
    .logo-wrap { max-width: 820px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}