:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: #5f6368;
    --accent: #0b5fff;
    --border: #e2e5e9;
    --success-bg: #e6f6ec;
    --success-fg: #146c2e;
    --error-bg: #fdecea;
    --error-fg: #b3261e;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14161a;
        --fg: #f2f2f2;
        --muted: #a0a5ab;
        --accent: #5b9dff;
        --border: #2c3036;
        --success-bg: #113322;
        --success-fg: #6fd897;
        --error-bg: #3a1615;
        --error-fg: #ff8a80;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
}

.listing {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.hero h1 {
    font-size: 2.25rem;
    margin: 0 0 0.75rem;
    word-break: break-word;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.description p {
    font-size: 1.05rem;
}

.highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.5rem;
}

.highlights li {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.inquiry {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.inquiry h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.status-success {
    background: var(--success-bg);
    color: var(--success-fg);
}

.status-error {
    background: var(--error-bg);
    color: var(--error-fg);
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field-error {
    display: block;
    color: var(--error-fg);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.validation-summary ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--error-fg);
}

.validation-summary:empty {
    display: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button[type="submit"] {
    position: relative;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:hover {
    opacity: 0.92;
}

button[type="submit"]:disabled {
    cursor: default;
    opacity: 0.85;
}

button[type="submit"].is-loading .btn-label {
    visibility: hidden;
}

button[type="submit"].is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
