@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: #000;
}

nav a.active {
    color: #000;
    font-weight: bold;
    border-bottom-color: #333;
}

.language-toggle {
    margin-right: 4rem;
}

.language-toggle button {
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    color: #000;
}

h1, h2, h3, h4, h5 {
    font-family: 'Dancing Script', cursive;
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0.5rem;
    text-align: center;
}

section:not(#invitation) {
    text-align: left;
    align-items: flex-start;
}

section div {
    max-width: 800px;
    margin: auto;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h5 {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: bold;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#invitation {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/invitation-background.webp');
    background-size: cover;
    background-position: center;
    color: #333;
}

#invitation div {
    position: relative;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    border-radius: 0;
}

/* Fancy corner borders */
#invitation div::before,
#invitation div::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease-in-out;
}

#invitation div::before {
    top: 15px;
    left: 15px;
    border-top: 3px solid rgba(0, 0, 0, 0.5);
    border-left: 3px solid rgba(0, 0, 0, 0.5);
}

#invitation div::after {
    bottom: 15px;
    right: 15px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.5);
    border-right: 3px solid rgba(0, 0, 0, 0.5);
}

#welcome-message {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    font-weight: 400; /* Lighter than h1 */
}

#invitation-details {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/azory-w-siebie-transparent.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a cool parallax effect */
    padding-top: 12rem;
    padding-bottom: 12rem;
}

#invitation-details > div {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-separator {
    display: none; /* Hide the old separator */
}

.image-separator img {
    width: 100%;
    height: auto;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 2rem 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.travel-toggle {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.travel-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.3s;
    border-left: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.travel-option:first-child {
    border-left: none;
}

.travel-option:hover, .travel-option.active {
    background: #eee;
}

.travel-option i {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.travel-content {
    margin-top: 2rem;
}

.travel-info {
    display: none;
}

.travel-info.active {
    display: block;
}

/* Itinerary Toggle */
.itinerary-toggle {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.itinerary-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.3s;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.itinerary-option:first-child {
    border-left: none;
}

.itinerary-option:hover, .itinerary-option.active {
    background: #eee;
}

.itinerary-option i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.itinerary-option span {
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: normal;
}

.itinerary-content {
    margin-top: 2rem;
}

.itinerary-info {
    display: none;
}

.itinerary-info.active {
    display: block;
}

/* Accommodation Section */
#accommodation {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/angkor.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#accommodation > div {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#gifts {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/cagliari.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#gifts > div {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photos-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.photos-layout p {
    flex: 2;
    margin: 0;
}

.photos-layout .form-container {
    flex: 1;
    text-align: center;
    width: auto;
    margin-top: 0;
}

.form-container {
    margin-top: 2rem;
    width: 100%;
}

.form-container iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: 10px;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background-color: #333;
    color: white !important; /* Use important to override link color */
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    text-shadow: none; /* Ensure no unwanted shadow is inherited */
}

.button:hover {
    background-color: #333;
    color: white !important;
}

/* Contact Section */
#contact {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/niebo.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

#contact h2 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 250px;
    text-align: center;
}

.contact-item p {
    margin: 0.5rem 0;
}

.contact-item p:first-child {
    font-weight: bold;
    font-size: 1.2rem;
}

a.contact-phone-link {
    display: block;
    margin: 0.5rem 0;
    text-decoration: none;
    color: #333;
}

a.contact-phone-link:hover {
    text-decoration: underline;
}

a.contact-phone-link i {
    margin-right: 0.5rem;
}

#hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Above the header */
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .photos-layout {
        flex-direction: column;
        text-align: center;
    }

    #hamburger-menu {
        display: block;
    }

    nav {
        display: none; /* Hide nav container on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    nav.open {
        transform: translateX(0);
        display: flex; /* Show it when it's open */
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav li {
        margin: 1.5rem 0;
    }

    nav a {
        font-size: 1.5rem;
    }

    /* --- Section paddings for mobile (except travel) --- */
    #invitation > div,
    #invitation-details > div,
    #rsvp > div,
    #accommodation > div,
    #itinerary > div,
    #gifts > div,
    #photos > div,
    #contact > div {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        /* Keep internal padding for text readability */
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .guest-preference-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
        padding: 0; /* Remove horizontal padding, let parent handle it */
    }
    #guest-preferences-form {
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
    }
    .toggle-group {
        max-width: 100%;
    }
    
    .icons-only-mobile .preference-label,
    .labels-hidden-mobile .preference-label {
        display: none;
    }
    .preference-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    #gifts {
        background-position: 66% center;
    }

    #accommodation {
        background-size: 140%;
        background-repeat: no-repeat;
        background-position: center;
    }

    #contact {
        padding-top: 22rem;
        background-position: 20% center;
    }


    .bomb-counter {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: clamp(1.2rem, 8vw, 2.5rem);
        overflow-x: auto;
        font-size: 1rem;
    }

    #rsvp {
        background-position: 90% center !important;
    }

    #travel > div {
        margin-left: 3rem;
        margin-right: 2rem;
    }
}

/* Add or update for homeLocation styling */
[data-key="homeLocation"] {
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
    margin: 1.2rem 0 0.5rem 0;
}

/* Guest Preferences Form Styles */
.toggle-group {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.toggle-option {
    flex: 1 1 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0;
    min-height: 0;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
}
.toggle-option:first-child {
    border-left: none;
}
.toggle-option:hover, .toggle-option.active {
    background: #eee;
}
.guest-preference-block {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1rem 1rem;
    margin-bottom: 0;
    width: 30rem;
    margin: 0 auto;
}
.guest-preference-block h4 {
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0.5rem;
    text-align: left;
}
.guest-preference-block label {
    display: block;
    margin: 1rem 0 0.5rem 0;
    font-weight: 500;
}
.guest-preference-block input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.guest-preference-block + .guest-preference-block {
    margin-top: 2rem;
}

#gifts {
    padding-bottom: 15rem;
}

#rsvp {
    background-image: url('https://myszoslub.s3.us-east-1.amazonaws.com/ogrod.webp');
    background-size: cover;
    background-position: 30% center;
    background-attachment: fixed;
    padding-left: 0;
    padding-right: 0;
}

#rsvp > div {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.gifts-symbolic-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.gift-symbolic-col {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gift-symbolic-col svg {
    margin-bottom: 1rem;
}
.gift-symbolic-label {
    display: none;
}
.gift-sequence img {
    width: 80px;
    height: 80px;
}
@media (max-width: 600px) {
    .gifts-symbolic-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .gift-symbolic-col {
        max-width: 100%;
    }
}

.gift-sequence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}
.gift-icon-placeholder,
.money-icon-placeholder,
.flowers-icon-placeholder,
.coffee-icon-placeholder {
    font-size: 2.5rem;
    line-height: 1;
    display: inline-block;
}
.gift-arrow {
    font-size: 3rem;
    color: #B8860B;
    margin: 0 0.2rem;
    display: inline-block;
}

/* Guest preference icons and labels */
.preference-icon {
    width: 80%;
    height: 80%;
    display: block;
    margin: 0 0 0.3rem 0; /* space below icon */
}
.preference-label {
    display: block;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

/* 4. Collapsible content styles */
.guest-card-content {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.guest-card-content.collapsed {
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.5;
}

/* 3. Center RSVP & Preferences title */
#rsvp h2 {
    text-align: center;
}

.guest-name-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.collapse-icon {
    font-size: 1.5rem;
    margin-left: auto;
    transition: transform 0.3s;
    user-select: none;
    min-width: 1.5em;
    text-align: right;
}
.collapse-icon.collapsed:not(.checked) {
    transform: rotate(-90deg);
}
.collapse-icon.checked {
    color: #2ecc40;
    font-weight: bold;
}

#rsvp-countdown {
    background: #000;
    font-family: 'Share Tech Mono', 'Courier New', Courier, monospace !important;
}

#rsvp-countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    background: #fff;
    opacity: 0.6;
    border-radius: 0.4em;
    padding-left: 1rem;
    padding-right: 1rem;
}
.rsvp-countdown-info {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-family: 'Share Tech Mono', 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}
.bomb-counter {
    font-family: 'Share Tech Mono', 'Courier New', Courier, monospace !important;
    font-size: 2.5rem;
    color: #ff2222;
    background: #fff;
    border-radius: 0.4em;
    padding: 0.3em 0.3em;
    letter-spacing: 0.15em;
    text-shadow: 0 0 8px #ff2222, 0 0 2px #fff;
    display: inline-block;
}
.rsvp-bg {
    background: #fff;
    border-radius: 0.4em;
}
/* Remove opacity from buttons */
.toggle-option, .toggle-group button, .toggle-group .toggle-option {
    opacity: 1 !important;
}

/* Add DSEG7 Classic 7-segment font */
@font-face {
    font-family: 'DSEG7Classic';
    src: url('/fonts//dseg7.woff2') format('woff2'),
         url('/fonts/dseg7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#rsvp-countdown, .bomb-counter {
    font-family: 'DSEG7Classic', 'Share Tech Mono', 'Courier New', Courier, monospace !important;
}

#invitation h1,
#invitation h2,
#invitation h3,
#invitation h4,
#invitation h5,
#invitation h6,
#invitation p,
#invitation span {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

.selected-beverage-label {
    display: none;
    font-weight: inherit;
    font-size: inherit;
    vertical-align: baseline;
}
@media (max-width: 768px) {
    .selected-beverage-label {
        display: inline;
        vertical-align: baseline;
    }
}

/* Make diet icons smaller than beverage icons */
.toggle-group[data-name="dietaryPreference"] .preference-icon {
    width: 50%;
    height: 50%;
}

#rsvp-deadline-message {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    text-align: center;
    margin: 2rem auto 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1rem 1rem;
    max-width: min(30rem, 100%);
    color: #222;
    border: none;
}

.fancy-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    color: #b48a00;
}

.guest-save-btn {
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1.2rem;
    margin-left: auto;
    display: block;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.guest-save-btn:hover {
    background-color: #555;
}