html, body {
    background-image: url('../background.svg');
    margin: 0;
    overflow-x: hidden;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-skip-ink: auto;
    color: #755C82;
}

/* Avoid underline artifacts when an <a> wraps block content (e.g., the InfoItems event cards).
   We remove the underline from the anchor and apply it only to the text span. */
.event-card a {
    text-decoration: none;
    color: inherit;
}

.event-card a .location-text {
    color: #755C82;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-skip-ink: auto;
}

.page {
    margin: 0;
}

h2 {
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
}

h3 {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
}

li {
    list-style-type: circle;
    font-size: 1.4rem;
    padding: 0.3rem;
}

#app {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#app.visible {
    opacity: 1;
}
 
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.floral-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 40px;
    position: relative;
    height: 600px;
}

.floral-circle {
    width: 600px;
    height: 600px;
    background-image: url('../floral_sample.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    border-radius: 50%;
    animation: rotate-flowers 240s linear infinite;
}

@keyframes rotate-flowers {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;  /* stable viewport height (prevents Chrome mobile URL bar jump) */
    height: 100dvh;  /* dynamic viewport height where supported */
    background-color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 1;
    transition: opacity 1s ease-in-out;

    padding: 16px; /* prevents circle from touching edges on small screens */
}

.loading-container.loaded {
    opacity: 0;
    pointer-events: none;
}

.circle-border {
    width: 250px;
    height: 250px;
    border: 3px solid #755C82;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* keeps future overlays safe without breaking layout */
}

/* Responsive loader sizing */
#loading-screen .circle-border {
    width: clamp(160px, 55vw, 250px);
    height: clamp(160px, 55vw, 250px);
}

#loading-screen .initials-container {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#loading-screen .initials-text {
    font-size: clamp(1.8rem, 7vw, 3rem);
}

#loading-screen .vertical-line {
    height: clamp(48px, 18vw, 80px);
}

.initials-container {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.initials-text {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 600;
    color: black;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff;
}

.vertical-line {
    width: 1.5px;
    height: 80px;
    background-color: black;
    opacity: 0.9;
}

.name {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    letter-spacing: 0.2em;
    font-weight: 0;
    text-transform: uppercase;
    margin: 10px 0;
    color: #111;
}

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 0;
    color: #755C82;
    margin: 15px 0;
}

.invite-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 0;
    margin: 50px 0;
    letter-spacing: 0.05em;
    color: #333;
}

.date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #222;
}

.location {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0;
    color: #111;
}

.event-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-card {
    flex: 0 0 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    color: black;
    padding: 20px;
    box-shadow: 0 0 6px #CDB4D6;
}

.event-card:nth-child(1),
.event-card:nth-child(2) {
    flex: 0 0 calc(30% - 1rem);
}

.event-card:nth-child(3),
.event-card:nth-child(4) {
    flex: 0 0 calc(60% - 1rem);;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: #fff;
    margin: 5px;
}

.icon {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.details-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    font-weight: 400;
}

.separator {
    width: 100%;
    height: 1px;
    background-color: #666;
    margin: 10px 0 15px 0;
    opacity: 0.3;
}

.time {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
}

.pin-icon {
    width: 20px;
    height: 20px;
    color: #755C82;
}

.location-text {
    font-weight: 400;
    color: #755C82;
}

.image-container {
    width: 40%;
    display: inline-block;
    text-align: center;
}

.image {
    max-width: 100%;
    height: auto;
    padding: 1rem 3rem;
}

.container {
    width: 100%;
    height: 100%;
    display: inline-block;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-heading {
    width: calc(60% - 1rem);
    margin-top: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.faq-heading > h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    font-weight: 400;
}

.faq-text {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 0;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
    color: #333;
}

.faq-item-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 0.5rem;
    width: 100%;
}

.faq-item {
    padding: 0;
    height: fit-content;
    background-color: transparent;
    text-align: left;
}

.faq-separator {
    width: calc(60% - 1rem);
    height: 1px;
    background-color: #755C82;
    margin: 10px 0 15px 0;
    opacity: 0.3;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question {
    font-weight: 590;
}

.faq-answer {
    color: #4a4a4a;
    text-align: left;
    justify-content: left;
}

/* Smooth open/close for FAQ answers.
   Uses a grid trick to animate from 0fr -> 1fr (works with dynamic height content). */
.faq-answer-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms ease;
}

.faq-answer-collapsible.is-open {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-collapsible .faq-answer {
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 220ms ease, transform 220ms ease;
    will-change: opacity, transform;
}

.faq-answer-collapsible.is-open .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

button {
    width: calc(60% - 1rem);
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: normal;
    text-align: left;
    border: none;
    height: fit-content;
    background-color: transparent;
    color: black;
}

.arrow {
    border: solid #755C82;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.arrow.down {
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.arrow.up {
    transform: rotate(-135deg);
    margin-top: 3px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: #333;
}

.timer-container {
    font-family: 'Cormorant Garamond', serif;
    width: 80%;
    background-color: transparent;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.time-part {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #755C82;
}

.time-separator {
    width: 1.5px;
    height: 80px;
    background-color: black;
    opacity: 0.3;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0 14px 0;
    padding: 12px 22px;

    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #241b28;
    background: rgba(117, 92, 130, 0.10);
    border: 1px solid rgba(117, 92, 130, 0.55);
    border-radius: 999px;

    text-decoration: none;
    box-shadow: 0 10px 24px rgba(117, 92, 130, 0.18);
    transition: transform 150ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.cta-button:hover {
    background-color: rgba(117, 92, 130, 0.16);
    border-color: rgba(117, 92, 130, 0.75);
    color: #755C82;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(117, 92, 130, 0.24);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(117, 92, 130, 0.18);
}

.cta-button:focus-visible {
    outline: 2px solid rgba(117, 92, 130, 0.55);
    outline-offset: 3px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e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LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: black;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
    }
}

/* Tablet and down */
@media (max-width: 1024px) {
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.8rem; }

    .floral-header { height: 480px; }
    .floral-circle {
        width: 480px;
        height: 480px;
    }

    .event-card-container {
        align-items: stretch;
    }

    .event-card:nth-child(1),
    .event-card:nth-child(2) {
        flex: 0 0 calc(40% - 1rem);
    }

    .event-card:nth-child(3),
    .event-card:nth-child(4) {
        flex: 0 0 calc(80% - 1rem);;
    }

    .image-container {
        width: 70%;
    }

    button,
    .faq-heading,
    .faq-separator {
        width: calc(80% - 1rem);
    }

    .timer-display {
        gap: 2.5rem;
    }
}

/* Phones */
@media (max-width: 780px) {
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    li { font-size: 1.2rem; }

    .floral-header { height: 360px; margin-top: 24px; margin-bottom: 24px; }
    .floral-circle {
        width: 320px;
        height: 320px;
    }

    .cta-button {
        font-size: 1.05rem;
        padding: 12px 20px;
        letter-spacing: 0.10em;
        box-shadow: 0 8px 20px rgba(117, 92, 130, 0.18);
    }

    .initials-text { font-size: 2.2rem; }
    .vertical-line { height: 60px; }

    .name { font-size: 1.7rem; letter-spacing: 0.12em; }
    .invite-text { font-size: 1.3rem; margin: 32px 0; }
    .date { font-size: 1.7rem; }
    .location { font-size: 1.4rem; letter-spacing: 0.12em; }

    .event-card-container {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    /* Override nth\-child layout so cards stack */
    .event-card,
    .event-card:nth-child(1),
    .event-card:nth-child(2),
    .event-card:nth-child(3),
    .event-card:nth-child(4) {
        flex: 0 0 80%;
    }

    .event-card {
        padding: 16px;
    }

    .title { font-size: 1.25rem; }
    .time { font-size: 1.2rem; }
    .location-row { font-size: 1.1rem; }
    .pin-icon { width: 18px; height: 18px; }

    .image-container {
        width: 90%;
    }

    button,
    .faq-heading,
    .faq-separator {
        width: calc(92% - 1rem);
    }

    /* FAQ: smaller text on phones */
    .faq-heading > h2 { font-size: 1.6rem; }
    .faq-text { font-size: 1.1rem; margin-bottom: 28px; }

    button { font-size: 1.15rem; }
    .faq-question { font-size: 1.15rem; }
    .faq-answer { font-size: 1.05rem; }

    .faq-answer p { font-size: 1.05rem; }
    .faq-answer li { font-size: 1.0rem; }
    
    .quote { font-size: 1.3rem; }

    .timer-container { width: 100%; }
    .timer-display {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .time-separator { height: 50px; }
}

/* Very small phones */
@media (max-width: 420px) {
    .floral-circle {
        width: 260px;
        height: 260px;
    }

    .name { font-size: 1.5rem; }
    .invite-text { font-size: 1.2rem; }
    .date { font-size: 1.5rem; }
    .location { font-size: 1.25rem; }

    .event-card { padding: 14px; }

    .timer-display { gap: 0.75rem; }
}

/* --- FAQ toggle: remove mobile "grey flash" (tap highlight / active press styling) --- */
.faq-item-container > button {
    -webkit-tap-highlight-color: transparent; /* iOS/Android grey rectangle flash */
    tap-highlight-color: transparent;

    -webkit-appearance: none;
    appearance: none;

    outline: none;
    background-color: transparent;

    user-select: none;           /* avoid selection flash on tap */
    -webkit-user-select: none;
}

/* Keep answer text selectable */
.faq-item-container > button .faq-answer {
    user-select: text;
    -webkit-user-select: text;
}

/* Prevent default active background in some mobile UAs */
.faq-item-container > button:active {
    background-color: transparent;
}

/* Accessible focus for keyboard (won't show on touch taps in modern browsers) */
.faq-item-container > button:focus {
    outline: none;
}
.faq-item-container > button:focus-visible {
    outline: 2px solid rgba(117, 92, 130, 0.55);
    outline-offset: 3px;
    border-radius: 6px;
}
