﻿:root {
    --pink: #fff0f3;
    --blue: #e0f2f1;
    --purple: #f3e5f5;
    --yellow: #fff9db;
    --text: #455a64;
    --accent: #b39ddb;
    --yes-bg: #dcedc8;
    --no-bg: #ffcdd2;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: #ffffff;
    overflow-x: hidden;
    letter-spacing: 0.5px;
}

/* --- THE STICKY HEADER --- */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    z-index: 10001 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-bottom: 1px solid var(--pink) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

nav {
    display: flex;
    align-items: center;
}

    nav a {
        text-decoration: none;
        color: var(--text);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0 15px;
        font-weight: 400;
        transition: all 0.3s ease;
    }

/* --- SECTIONS --- */
section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 750px;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 15vw, 7rem);
    color: white;
    margin: 0;
    font-weight: 400;
    text-shadow: 0px 1px 1px rgba(0,0,0,1);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 30px;
    font-style: italic;
}

.sub-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 0px 30px 50px;
    border-radius: 50px 50px 5px 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid #ffffff;
    width: 100%;
}

/* HOME */
#home {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    background-image: url('../img/cover.webp');
    background-size: cover;
    background-position: center;
    padding-top: 120px !important;
}

.break-mobile {
    font-family: 'Pinyon Script', cursive;
}

#event-details {
    margin: 30px 0;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    padding: 20px 0;
    display: inline-block;
    font-weight:500;
}

#event-date {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-shadow: 0px 1px 1px rgba(0,0,0,1);
}

#event-time {
    font-size: 1rem;
    letter-spacing: 5px;
    text-shadow: 1px 1px 1px rgba(0,0,0,1);
}

.invitation-btn {
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    background-color: var(--accent);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

    .invitation-btn:hover {
        background-color: #555;
    }

/* ATTIRE */
#attire {
    background-color: var(--blue);
    background-image: url('../img/attire.webp');
    background-size: cover;
    background-position: center;
}

.attire-card {
    text-align: center;
}

#attire h2 {
    margin-bottom: 10px;
}

#attire h3 {
    color: #777;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

#attire-desc {
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 35px;
    color: #546e7a;
}

#attire-specs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#allowed {
    background-color: #f1f8e9;
    border: 2px solid #8bc34a;
    padding: 20px 25px 8px 25px;
    border-radius: 15px;
    text-align: left;
}

#allowed-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#allowed-header {
    color: #33691e;
    text-transform: uppercase;
}

#allowed-specs {
    margin: 0;
    color: #33691e;
    font-weight: 500;
}

#prohibited {
    background-color: #ffebee;
    border: 2px solid #ef5350;
    padding: 20px 25px 8px 25px;
    border-radius: 15px;
    text-align: left;
}

#prohibited-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#prohibited-header {
    color: #c62828;
    text-transform: uppercase;
}

#prohibited-specs {
    margin: 0;
    color: #c62828;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#attire-subtext {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #b71c1c;
    opacity: 0.8;
    font-style: italic;
    border-top: 1px solid rgba(239, 83, 80, 0.3);
    padding-top: 10px;
}

#attire-footer {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b71c1c;
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* REGISTRY */
#bring {
    background-color: var(--yellow);
    background-image: url('../img/registry.webp');
    background-size: cover;
    background-position: center;
}

#registry-container {
    line-height: 2;
}

/* LOCATION */
#location {
    background-color: var(--purple);
    background-image: url('../img/location.webp');
    background-size: cover;
    background-position: center;
}

.venue-block {
    margin: 20px 0;
}

.venue-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight:600;
}



#location-divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 20px auto;
}

/* GUEST LIST */
#rsvp {
    background-color: #ffffff;
}

.guest-list {
    margin-top: 30px;
    background: var(--pink);
    border-radius: 40px;
    padding: 20px;
    border: 1px solid var(--accent);
}

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 10px 0;
    background: white;
    border-radius: 25px;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-align: left;
    flex: 1;
}

.name-input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
    outline: none;
}

.choice-group {
    display: flex;
    gap: 10px;
}

.btn-choice {
    border: 1px solid #ddd;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

    .btn-choice.yes.active {
        background-color: var(--yes-bg);
        border-color: #aed581;
        color: #33691e;
    }

    .btn-choice.no.active {
        background-color: var(--no-bg);
        border-color: #ef9a9a;
        color: #b71c1c;
    }

.capacity-note {
    margin-top: 25px;
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.deadline-note {
    margin-top: 25px;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#add-guest-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 20px;
}

#save-btn {
    margin-top: 40px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 20px 60px;
    border-radius: 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(179, 157, 219, 0.4);
}

#rsvp-input-container {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    width: 100%;
}

.btn-choice.hidden {
    display: none;
}

#thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* The spinning circle */
.loader-icon {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff; /* The "moving" part of the spinner */
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Optional: styling the button state when disabled */
#save-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Fillers */
.image-collage {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 0%
}

    .image-collage img {
        width: 31%;
        height: auto;
    }

.image-collage-landscape {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    width: 100%;
    margin: 0 auto;
}

    .image-collage-landscape img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }


/* Mobile Adjustments */
@media (max-width: 768px) {
    .guest-item {
        flex-direction: column;
        gap: 15px;
    }

    .guest-name {
        text-align: center;
    }

    .name-input {
        max-width: 100%;
        text-align: center;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.6rem;
    }

    h1 {
        font-size: 4.5rem;
        padding-top: 30px;
    }

    .break-mobile {
        display: block;
        margin: 10px 0;
    }

    #bring {
        background-image: url('../img/registry-mob.webp');
    }

    .registry-card {
        margin-top:120px
    }
}


