/* =====================================================================
   The Elm - additions on top of the theme (style.css is left untouched).
   Christmas section, daytime room hire, enquiry form, thank-you page.
   ===================================================================== */

:root {
    --elm-gold: #C19D60;
    --elm-gold-light: #e2c891;
    --elm-ink: #1b1b1b;
    --elm-cream: #f2eee8;
    --elm-evergreen: #12211b;
    --elm-evergreen-2: #1a2e25;
    --elm-holly: #8f1d24;
}

/* The theme nudges every <img> up 5% and stretches it; undo that for ours. */
.elm-framed img,
.elm-thanks-logo {
    transform: none;
}

/* ---------- Buttons & links ---------- */
.elm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
}
.elm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    font-family: 'Noah', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}
.elm-btn-gold {
    background: var(--elm-gold);
    color: var(--elm-ink);
}
.elm-btn-gold:hover,
.elm-btn-gold:focus-visible {
    background: var(--elm-gold-light);
    color: var(--elm-ink);
}
.elm-btn-dark {
    background: var(--elm-ink);
    color: #fff;
}
.elm-btn-dark:hover,
.elm-btn-dark:focus-visible {
    background: var(--elm-gold);
    color: var(--elm-ink);
}
.elm-btn[disabled] {
    opacity: .6;
    cursor: wait;
}
.elm-link {
    color: var(--elm-gold);
    border-bottom: 1px solid rgba(193, 157, 96, .4);
}
.elm-link:hover {
    color: var(--elm-gold-light);
}

/* ---------- Framed photo ---------- */
.elm-framed {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(193, 157, 96, .55);
}
.elm-framed img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.elm-framed-light {
    border-color: rgba(27, 27, 27, .25);
}

/* ---------- Christmas ---------- */
.elm-christmas {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 30%, var(--elm-evergreen-2) 0%, var(--elm-evergreen) 60%, #0b1511 100%);
}
.elm-christmas p {
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    max-width: 520px;
}
.elm-christmas .section-head .section-subtitle {
    color: var(--elm-gold-light);
}
.elm-xmas-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 28px;
    border: 1px solid rgba(193, 157, 96, .6);
    border-radius: 50%;
    color: var(--elm-gold);
}
.elm-xmas-tree {
    width: 56px;
    height: auto;
}
.elm-sparkles span {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--elm-gold-light);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    animation: elm-twinkle 3.2s ease-in-out infinite;
    pointer-events: none;
}
.elm-sparkles span:nth-child(1) { top: 12%; left: 4%; }
.elm-sparkles span:nth-child(2) { top: 20%; left: 46%; width: 9px; height: 9px; animation-delay: 1.1s; }
.elm-sparkles span:nth-child(3) { top: 78%; left: 8%; width: 11px; height: 11px; animation-delay: .5s; }
.elm-sparkles span:nth-child(4) { top: 10%; left: 94%; width: 20px; height: 20px; animation-delay: .2s; }
.elm-sparkles span:nth-child(5) { top: 88%; left: 52%; width: 8px; height: 8px; animation-delay: 1.8s; }
.elm-sparkles span:nth-child(6) { top: 62%; left: 97%; width: 10px; height: 10px; animation-delay: 2.4s; }
@keyframes elm-twinkle {
    0%, 100% { opacity: .35; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .elm-sparkles span { animation: none; }
}

/* ---------- Daytime room hire ---------- */
.elm-dayhire p {
    font-size: 17px;
    color: #555;
}
.elm-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 10px 0 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(27, 27, 27, .12);
    border-bottom: 1px solid rgba(27, 27, 27, .12);
}
.elm-price-amount {
    font-family: 'Libre Caslon Display', serif;
    font-size: 56px;
    line-height: 1;
    color: var(--elm-ink);
}
.elm-price-unit {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--elm-gold);
}
.elm-checklist {
    margin: 0;
    padding: 0;
}
.elm-checklist li {
    position: relative;
    padding: 6px 0 6px 30px;
    font-size: 16px;
    color: var(--elm-ink);
}
.elm-checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--elm-gold);
    border-bottom: 2px solid var(--elm-gold);
    transform: rotate(-45deg);
}

/* ---------- Enquiry form ---------- */
.elm-enquire p {
    color: rgba(255, 255, 255, .72);
}
.elm-hidden {
    position: absolute;
    left: -9999px;
}
.elm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.elm-field-full {
    grid-column: 1 / -1;
}
.elm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.elm-field > span,
.elm-check > span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--elm-gold);
}
.elm-check > span {
    letter-spacing: .5px;
    text-transform: none;
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
}
.elm-field input,
.elm-field select,
.elm-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-family: 'Noah', sans-serif;
    font-size: 16px; /* 16px stops iOS zooming into the field */
    color: #fff;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    transition: border-color .2s, background-color .2s;
    color-scheme: dark;
    margin: 0; /* the theme adds bottom margins to form fields */
    line-height: 1.4;
    box-shadow: none;
}
.elm-field input,
.elm-field select {
    height: 52px;
}
.elm-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--elm-gold) 50%), linear-gradient(135deg, var(--elm-gold) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}
.elm-field select option {
    color: var(--elm-ink);
}
.elm-field input:focus,
.elm-field select:focus,
.elm-field textarea:focus {
    border-color: var(--elm-gold);
    background-color: rgba(255, 255, 255, .08);
    outline: none;
}
.elm-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}
.elm-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--elm-gold);
}
[data-show-for][hidden] {
    display: none !important;
}
.elm-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 28px;
}
.elm-form-status {
    margin: 0;
    font-size: 15px;
}
.elm-form-status.is-success {
    color: var(--elm-gold-light);
}
.elm-form-status.is-error {
    color: #f0a3a3;
}
.elm-form.is-sent .elm-form-grid,
.elm-form.is-sent button {
    display: none;
}
.elm-form.is-sent .elm-form-status {
    font-family: 'Libre Caslon Display', serif;
    font-size: 26px;
    line-height: 1.35;
}

/* ---------- Thank-you page ---------- */
.elm-thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--elm-ink);
    text-align: center;
    padding: 40px 20px;
}
.elm-thanks-inner {
    max-width: 520px;
}
.elm-thanks-inner p {
    color: rgba(255, 255, 255, .75);
    margin-bottom: 30px;
}
.elm-thanks-logo {
    width: 140px;
    margin-bottom: 40px;
}

/* ---------- Small screens ---------- */
@media screen and (max-width: 767px) {
    .elm-form-grid {
        grid-template-columns: 1fr;
    }
    .elm-price-amount {
        font-size: 46px;
    }
    .elm-framed img {
        aspect-ratio: 4 / 3;
    }
    .elm-btn {
        width: 100%;
    }
    .elm-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}
