/* =========================================================================
   Skyview native forms — contact-us, contact drawer, apartment quote.
   Mobile-first. Brand: #FE7222 (orange), gray-900 ink, Nunito.
   ========================================================================= */

.sv-form-wrap {
    --sv-brand: #fe7222;
    --sv-brand-hover: #c2410c;
    --sv-brand-soft: #fff4ed;
    --sv-brand-ring: rgba(254, 114, 34, .22);
    --sv-ink: #111827;
    --sv-text: #374151;
    --sv-muted: #6b7280;
    --sv-faint: #9ca3af;
    --sv-line: #d1d5db;
    --sv-line-soft: #e5e7eb;
    --sv-soft: #f9fafb;
    --sv-error: #dc2626;
    --sv-error-soft: #fef2f2;
    --sv-success: #16a34a;
    --sv-radius: 8px;
    font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--sv-text);
    width: 100%;
    text-align: left;
}
.sv-form-wrap *,
.sv-form-wrap *::before,
.sv-form-wrap *::after { box-sizing: border-box; }

.sv-form { margin: 0; }
.sv-form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.sv-form legend { float: left; padding: 0; }
.sv-form legend + * { clear: both; }

/* Utilities */
.sv-sr,
.sv-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.sv-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Layout ---------- */
.sv-grid { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
@media (min-width: 640px) {
    .sv-form-wrap--page .sv-grid { grid-template-columns: 1fr 1fr; }
}

.sv-field { margin-bottom: 20px; }

/* ---------- Labels ---------- */
.sv-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--sv-ink);
    margin: 0 0 8px;
    padding: 0;
}
.sv-optional {
    font-size: 13px;
    font-weight: 400;
    color: var(--sv-faint);
}

/* ---------- Inputs ---------- */
.sv-control { position: relative; }
.sv-control > .sv-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sv-faint);
    pointer-events: none;
    transition: color .15s ease;
}
.sv-control:focus-within > .sv-icon { color: var(--sv-brand); }

.sv-form input[type="text"],
.sv-form input[type="email"],
.sv-form input[type="tel"],
.sv-form textarea {
    display: block;
    width: 100%;
    margin: 0;
    font-family: inherit;
    font-size: 16px;               /* 16px avoids iOS zoom on focus */
    font-weight: 400;
    line-height: 24px;
    color: var(--sv-ink);
    background: #fff;
    border: 1px solid var(--sv-line);
    border-radius: var(--sv-radius);
    padding: 11px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sv-control input { padding-left: 44px !important; height: 48px; }
.sv-form textarea { resize: vertical; min-height: 112px; }

.sv-form input::placeholder,
.sv-form textarea::placeholder { color: var(--sv-faint); opacity: 1; }

.sv-form input:hover,
.sv-form textarea:hover { border-color: #9ca3af; }

.sv-form input:focus,
.sv-form textarea:focus {
    border-color: var(--sv-brand);
    box-shadow: 0 0 0 4px var(--sv-brand-ring);
}

/* ---------- Chips (radio pills) ---------- */
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chip { position: relative; margin: 0; cursor: pointer; }
.sv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--sv-text);
    background: #fff;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    transition: all .15s ease;
    user-select: none;
}
.sv-chip:hover span { border-color: var(--sv-brand); color: var(--sv-ink); }
.sv-chip input:checked + span {
    background: var(--sv-brand-soft);
    border-color: var(--sv-brand);
    color: var(--sv-brand-hover);
    box-shadow: inset 0 0 0 1px var(--sv-brand);
}
.sv-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--sv-brand-ring); }

/* ---------- Selectable cards (product) ---------- */
.sv-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .sv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--sv-line);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s ease;
}
.sv-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-card:hover { border-color: var(--sv-brand); }
.sv-card__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    flex: none;
    border-radius: 10px;
    background: var(--sv-soft);
    color: var(--sv-text);
    transition: all .15s ease;
}
.sv-card__icon .sv-icon { width: 28px; height: 28px; }
.sv-card__body { display: flex; flex-direction: column; min-width: 0; }
.sv-card__title { font-size: 16px; font-weight: 700; color: var(--sv-ink); line-height: 22px; }
.sv-card__hint { font-size: 13px; color: var(--sv-muted); line-height: 18px; }
.sv-card__check {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    flex: none;
    border-radius: 999px;
    border: 1px solid var(--sv-line);
    color: transparent;
    transition: all .15s ease;
}
.sv-card__check .sv-icon { width: 14px; height: 14px; stroke-width: 3; }
.sv-card:has(input:checked) {
    border-color: var(--sv-brand);
    box-shadow: inset 0 0 0 1px var(--sv-brand);
    background: #fffaf6;
}
.sv-card:has(input:checked) .sv-card__icon { background: var(--sv-brand-soft); color: var(--sv-brand); }
.sv-card:has(input:checked) .sv-card__check { background: var(--sv-brand); border-color: var(--sv-brand); color: #fff; }
.sv-card:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--sv-brand-ring); }
/* Fallback for browsers without :has() (toggled by JS) */
.sv-card.is-checked { border-color: var(--sv-brand); box-shadow: inset 0 0 0 1px var(--sv-brand); background: #fffaf6; }
.sv-card.is-checked .sv-card__icon { background: var(--sv-brand-soft); color: var(--sv-brand); }
.sv-card.is-checked .sv-card__check { background: var(--sv-brand); border-color: var(--sv-brand); color: #fff; }

/* ---------- Checkboxes ---------- */
.sv-consents {
    background: var(--sv-soft);
    border: 1px solid var(--sv-line-soft);
    border-radius: var(--sv-radius);
    padding: 16px 16px 0;
    margin-bottom: 20px;
}
.sv-consents .sv-field { margin-bottom: 16px; }
.sv-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--sv-muted);
    cursor: pointer;
}
.sv-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 18px;
    width: 18px; height: 18px;
    margin: 1px 0 0;
    background: #fff;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all .15s ease;
}
.sv-check input[type="checkbox"]:checked { background: var(--sv-brand); border-color: var(--sv-brand); }
.sv-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 6px; height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sv-check input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px var(--sv-brand-ring); outline: none; }
.sv-check a { color: var(--sv-brand-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.sv-check a:hover { color: var(--sv-brand); }

/* ---------- Dropzone ---------- */
.sv-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 170px;
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    background: var(--sv-soft);
    border: 2px dashed var(--sv-line);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
}
.sv-dropzone:hover,
.sv-dropzone.is-dragover { border-color: var(--sv-brand); background: #fffaf6; }
.sv-dropzone.is-dragover { transform: scale(1.01); }
.sv-dropzone:focus-within { border-color: var(--sv-brand); box-shadow: 0 0 0 4px var(--sv-brand-ring); }
.sv-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sv-dropzone__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--sv-brand);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1);
}
.sv-dropzone__icon .sv-icon { width: 26px; height: 26px; }
.sv-dropzone__title { font-size: 15px; color: var(--sv-text); }
.sv-dropzone__title strong { color: var(--sv-brand-hover); font-weight: 700; }
.sv-dropzone__hint { font-size: 13px; color: var(--sv-muted); }
@media (hover: none) { .sv-dz-desktop { display: none; } }

.sv-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-file-list:not(:empty) { margin-top: 12px; }
.sv-file-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--sv-line-soft);
    border-radius: var(--sv-radius);
    animation: sv-in .2s ease;
}
.sv-file-list .sv-file-icon {
    display: grid; place-items: center;
    width: 36px; height: 36px; flex: none;
    border-radius: 8px;
    background: var(--sv-brand-soft);
    color: var(--sv-brand);
}
.sv-file-list .sv-file-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sv-file-list .sv-file-name { font-size: 14px; font-weight: 600; color: var(--sv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-file-list .sv-file-size { font-size: 12px; color: var(--sv-muted); }
.sv-file-list button {
    display: grid; place-items: center;
    width: 32px; height: 32px; flex: none;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--sv-faint);
    cursor: pointer;
    transition: all .15s ease;
}
.sv-file-list button:hover { background: var(--sv-error-soft); color: var(--sv-error); }

/* ---------- Steps (quote form) ---------- */
.sv-step { padding: 0 0 8px; margin: 0 0 24px; border-bottom: 1px solid var(--sv-line-soft); }
.sv-step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.sv-step__num {
    display: grid; place-items: center;
    width: 32px; height: 32px; flex: none;
    border-radius: 999px;
    background: var(--sv-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.sv-step__title {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin: 4px 0 2px;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--sv-ink);
}
.sv-step__desc { margin: 0; font-size: 14px; color: var(--sv-muted); }

/* ---------- reCAPTCHA ---------- */
.sv-recaptcha { min-height: 78px; }
.sv-recaptcha:empty { min-height: 0; }
@media (max-width: 360px) {
    .sv-recaptcha { transform: scale(.86); transform-origin: 0 0; }
}

/* ---------- Submit ---------- */
.sv-actions { display: flex; flex-direction: column; gap: 12px; }
.sv-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--sv-radius);
    background: var(--sv-brand);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 6px 16px -6px rgba(254, 114, 34, .55);
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.sv-submit:hover { background: var(--sv-brand-hover); }
.sv-submit:active { transform: translateY(1px); }
.sv-submit:focus-visible { outline: 2px solid var(--sv-brand-hover); outline-offset: 2px; }
.sv-submit__arrow { width: 18px; height: 18px; transition: transform .15s ease; }
.sv-submit:hover .sv-submit__arrow { transform: translateX(3px); }
.sv-submit:disabled { cursor: wait; opacity: .85; }
.sv-submit:disabled .sv-submit__arrow { display: none; }
.sv-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 999px;
    animation: sv-spin .7s linear infinite;
}
.sv-submit.is-loading .sv-spinner { display: inline-block; }

@media (min-width: 640px) {
    .sv-form-wrap--page .sv-actions { flex-direction: row; align-items: center; gap: 20px; }
    .sv-form-wrap--page .sv-submit { width: auto; min-width: 240px; }
}

.sv-progress { height: 6px; border-radius: 999px; background: var(--sv-line-soft); overflow: hidden; }
.sv-progress span { display: block; height: 100%; width: 0; background: var(--sv-brand); border-radius: inherit; transition: width .2s ease; }

.sv-secure { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--sv-muted); }
.sv-secure .sv-icon { width: 16px; height: 16px; color: var(--sv-faint); }

/* ---------- Errors ---------- */
.sv-error-msg { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--sv-error); }
.sv-error-msg:empty { display: none; }
.sv-field.has-error input[type="text"],
.sv-field.has-error input[type="email"],
.sv-field.has-error input[type="tel"],
.sv-field.has-error textarea { border-color: var(--sv-error); background: #fffafa; }
.sv-field.has-error input:focus,
.sv-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.sv-field.has-error .sv-control > .sv-icon { color: var(--sv-error); }
.sv-field.has-error .sv-chip span,
.sv-field.has-error .sv-card,
.sv-field.has-error .sv-dropzone { border-color: var(--sv-error); }
.sv-field.has-error .sv-check input[type="checkbox"] { border-color: var(--sv-error); }
.sv-field.has-error { animation: sv-shake .3s ease; }

.sv-form-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    background: var(--sv-error-soft);
    border: 1px solid #fecaca;
    border-radius: var(--sv-radius);
}
.sv-form-error:empty { display: none; }

/* ---------- Success ---------- */
.sv-success { text-align: center; padding: 32px 8px; outline: none; animation: sv-in .35s ease; }
.sv-success[hidden] { display: none; }
.sv-success__icon {
    display: grid; place-items: center;
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--sv-success);
    box-shadow: 0 0 0 8px #f0fdf4;
}
.sv-success__icon .sv-icon { width: 32px; height: 32px; stroke-width: 2.5; }
.sv-success__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--sv-ink); }
.sv-success__text { max-width: 440px; margin: 0 auto 20px; font-size: 16px; color: var(--sv-muted); }
.sv-success__text p { margin: 0 0 6px; }
.sv-link-btn {
    background: none; border: 0; padding: 6px 4px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    color: var(--sv-brand-hover);
    cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.sv-link-btn:hover { color: var(--sv-brand); }

@keyframes sv-spin { to { transform: rotate(360deg); } }
@keyframes sv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sv-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
    .sv-form-wrap *, .sv-form-wrap *::before, .sv-form-wrap *::after { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Page shells (cards / sections around the forms)
   ========================================================================= */

.sv-form-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .06);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 20px 40px -20px rgba(16, 24, 40, .18);
    padding: 24px 20px;
}
@media (min-width: 640px) { .sv-form-card { padding: 36px; } }
@media (min-width: 1024px) { .sv-form-card { padding: 44px; } }

.sv-form-card__title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #111827; line-height: 1.25; }
.sv-form-card__lead { margin: 0 0 28px; font-size: 15px; color: #6b7280; }
@media (min-width: 640px) { .sv-form-card__title { font-size: 28px; } }

/* Contact info column */
.sv-info { display: grid; gap: 12px; }
.sv-info__item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
a.sv-info__item:hover { border-color: #fe7222; box-shadow: 0 8px 20px -12px rgba(16, 24, 40, .25); }
.sv-info__icon {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    border-radius: 10px;
    background: #fff4ed;
    color: #fe7222;
}
.sv-info__icon .sv-icon { width: 22px; height: 22px; }
.sv-info__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.sv-info__value { display: block; font-size: 15px; font-weight: 600; color: #111827; word-break: break-word; }
.sv-info__value small { display: block; font-weight: 400; color: #6b7280; font-size: 14px; }
.sv-hours { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; margin-top: 4px; font-size: 14px; }
.sv-hours dt { color: #6b7280; }
.sv-hours dd { margin: 0; font-weight: 600; color: #111827; }
.sv-hours .is-closed { color: #9ca3af; font-weight: 400; }

/* Drawer */
.sv-drawer-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 8px 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
}
.sv-drawer-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #111827; line-height: 1.25; }
.sv-drawer-head p { margin: 0; font-size: 14px; color: #6b7280; }
#drawer-contact-us .sv-drawer-close {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}
#drawer-contact-us .sv-drawer-close:hover { background: #f3f4f6; color: #111827; }
#drawer-contact-us .sv-drawer-close .sv-icon { width: 20px; height: 20px; }
#drawer-contact-us-content { padding: 20px 24px 140px !important; overflow-y: auto; }
#drawer-contact-us-content .sv-form legend { display: flex !important; }
#drawer-contact-us { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 1023px) {
    #drawer-contact-us-content { padding: 16px 16px 120px !important; }
}

/* Section / layout helpers (own classes: the compiled Tailwind lacks most lg: utilities) */
.sv-section { background: #f9fafb; padding: 40px 0 56px; font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif; }
@media (min-width: 1024px) { .sv-section { padding: 72px 0 88px; } }
.sv-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .sv-container { padding: 0 24px; } }
@media (min-width: 1024px) { .sv-container { padding: 0 32px; } }
.sv-container--narrow { max-width: 960px; }

.sv-contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) {
    .sv-contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
    .sv-contact-grid__sticky { position: sticky; top: 190px; }
}
.sv-info__heading { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #111827; }
.sv-info__lead { margin: 8px 0 20px; font-size: 15px; color: #6b7280; }
@media (min-width: 640px) {
    .sv-contact-grid__info .sv-info { grid-template-columns: 1fr 1fr; }
    .sv-contact-grid__info .sv-info__item:first-child,
    .sv-contact-grid__info .sv-info__item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .sv-contact-grid__info .sv-info { grid-template-columns: 1fr; }
}
