body {
    background: #0d0d0d url('bg.jpg') center center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.content {
    width: 640px;
    max-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 64px;
}

/* Hero visual on top */
.hero {
    width: 90%;
    max-width: 600px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 26px;
    color: #FF9D60;
    text-align: center;
    margin-bottom: 24px;
}

/* Live counter – simple inline line */
.counter {
    display: inline-block;
    background: rgba(0, 0, 0, 0.55);
    color: #FF9D60;
    border: 1px solid #FF9D60;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 28px;
}

.text { width: 100%; }
.text p { text-align: center; font-size: 22px; margin: 10px 0; color: #FF9D60; }
.text .hl { display: inline-block; background: #FF9D60; color: #171717; padding: 1px 8px; border-radius: 2px; }

.divider { width: 60px; height: 3px; background: #FF9D60; margin: 24px auto; }

/* Form */
form.rsvp { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; color: #FF9D60; }
form.rsvp input[type=text],
form.rsvp input[type=email] {
    font-family: inherit;
    font-size: 22px;
    padding: 12px 16px;
    border: 3px solid #FF9D60;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 100%;
}
form.rsvp input::placeholder { color: rgba(255, 157, 96, 0.65); }
/* Keep browser autofill from recoloring to white */
form.rsvp input:-webkit-autofill,
form.rsvp input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

.confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 18px;
    color: #FF9D60;
    text-align: left;
    cursor: pointer;
}
.confirm input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }

button.submit {
    font-family: inherit;
    font-size: 26px;
    text-transform: uppercase;
    background: #FF9D60;
    color: #171717;
    border: none;
    padding: 14px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.1s ease;
}
button.submit:hover:not(:disabled) { background: #fff; color: #171717; transform: scale(1.02); }
button.submit:disabled { opacity: 0.5; cursor: not-allowed; }

.msg { font-size: 18px; text-align: center; margin-top: 4px; min-height: 22px; color: #FF9D60; }
.msg.error { color: #ff8a6a; }

/* Success / already-signed-up state */
.done {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FF9D60;
    color: #fff;
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
}
.done h2 { font-size: 34px; margin-bottom: 8px; color: #FF9D60; }
.done .code {
    font-size: 40px;
    letter-spacing: 0.12em;
    background: #FF9D60;
    color: #171717;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 3px;
    margin: 12px 0;
}
.done p { font-size: 19px; margin: 8px 0; }
.done .who { font-size: 18px; }
.done .who strong { color: #FF9D60; }
.done .who span { opacity: 0.75; font-size: 16px; }

/* Map preview – click to open the full image in a new tab */
.map-preview {
    position: relative;
    display: block;
    width: 100%;
    margin: 4px 0 16px;
    border: 3px solid #FF9D60;
    border-radius: 2px;
    line-height: 0;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.1s ease;
}
.map-preview:hover { transform: scale(1.01); }
.map-preview img { display: block; width: 100%; height: auto; }
.map-preview-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FF9D60;
    border-radius: 2px;
    color: #FF9D60;
    transition: background 0.1s ease, color 0.1s ease;
}
.map-preview-icon svg { width: 20px; height: 20px; }
.map-preview:hover .map-preview-icon { background: #FF9D60; color: #171717; }

/* Secondary call-to-action buttons */
.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}
.cta-btn {
    flex: 1 1 200px;
    font-family: inherit;
    font-size: 22px;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 16px;
    border: 3px solid #FF9D60;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.55);
    color: #FF9D60;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.1s ease, color 0.1s ease;
}
.cta-btn:hover:not(.disabled):not(:disabled) {
    background: #FF9D60;
    color: #171717;
    transform: scale(1.02);
}
/* Button with a trailing arrow – the arrow inherits the button colour,
   so it inverts along with the label on hover. */
.cta-btn.has-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cta-btn .btn-arrow {
    width: 20px;
    height: auto;
    flex-shrink: 0;
}
.cta-btn.disabled,
.cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.cta-hint {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #FF9D60;
    min-height: 20px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cta-hint.show { opacity: 1; }

.hidden { display: none !important; }

@media (max-width: 480px) {
    .counter { font-size: 16px; }
}
