/**
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* Elegant Minimalist Wedding Theme */
:root {
  --bulma-scheme-brightness: light;
  
  /* Clean Color Palette */
  --bulma-primary: #000000;        /* Pure black */
  --bulma-link: #000000;           /* Black links */
  --bulma-info: #000000;           /* Black info */
  --bulma-success: #000000;        /* Black success */
  --bulma-warning: #000000;        /* Black warning */
  --bulma-danger: #000000;         /* Black danger */
  
  /* Typography */
  --font-serif: "Goudy Old Style", "Georgia", "Times New Roman", serif;
  --font-sans: "Goudy Old Style", "Georgia", "Times New Roman", serif;
  
  /* Spacing */
  --border-subtle: 1px solid #e5e5e5;
  --border-strong: 1px solid #000000;
}

/* Global Reset and Base Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1.25rem; /* 25% larger than default 1rem */
}

/* Typography */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.title {
  color: #000000;
  text-align: center;
  font-size: 3.125rem; /* 25% larger than 2.5rem */
  margin-bottom: 1rem;
}

.subtitle {
  color: #000000;
  text-align: right;
  font-size: 1.4rem; /* 25% larger than 1.125rem */
  font-weight: 300;
  margin-bottom: 2rem;
}

/* All text elements */
p, .content, .has-text-dark, span, div, label {
  color: #000000 !important;
  font-family: var(--font-sans);
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(5px);
}

.navbar-menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.navbar-menu .navbar-item {
  color: #000000;
}

.navbar-brand .navbar-item {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.875rem; /* 25% larger than 1.5rem */
  color: #000000;
  text-decoration: none;
}

.navbar-item {
  color: #000000;
  font-weight: 400;
  font-size: 1.25rem; /* 25% larger than 1rem */
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-item:hover {
  color: #000000;
  background-color: rgba(248, 248, 248, 0.9);
}

/* Remove green from navbar items when clicked/active/focused */
.navbar-item:active,
.navbar-item:focus,
.navbar-item.is-active {
  color: #000000 !important;
  background-color: rgba(248, 248, 248, 0.9) !important;
  outline: none !important;
}

.navbar-brand .navbar-item:active,
.navbar-brand .navbar-item:focus,
.navbar-brand .navbar-item.is-active {
  color: #000000 !important;
  background-color: rgba(248, 248, 248, 0.9) !important;
  outline: none !important;
}

/* Hero Section */
.hero {
  background-color: #ffffff;
  padding: 4rem 1.5rem;
  text-align: center;
}

/* Wedding Hero with Background Image */
.wedding-hero {
  background-image: url('/static/DSC_0244.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 70vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  min-height: 500px;
}
.wedding-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.wedding-hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem 6rem;
}

.wedding-hero .container {
  text-align: right;
  width: 100%;
  max-width: none;
  margin-right: 0;
  padding-right: 0;
}

.wedding-hero .content-box {
  display: inline-block;
  max-width: 400px;
  text-align: right;
}

.wedding-hero .title,
.wedding-hero .subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.wedding-hero .button {
  background: linear-gradient(135deg, #f8f4ff 0%, #f1c7ee 50%, #e8a5e8 100%);
  border: none;
  color: #4a4a4a;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 1.25rem 2.5rem;
  font-size: 1.375rem; /* 25% larger than 1.1rem */
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(241, 199, 238, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  min-width: 180px;
}

.wedding-hero .button:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8f4ff 50%, #f1c7ee 100%);
  color: #333333;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(241, 199, 238, 0.7), 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Cards and Boxes */
.box, .card {
  background-color: rgba(255, 255, 255, 0.95);
  border: var(--border-subtle);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Ensure box inside rsvp wrapper doesn't expand unnecessarily */
.rsvp-background-wrapper .box {
  width: 100%;
  flex-shrink: 0;
}

/* Background wrapper for RSVP box */
.rsvp-background-wrapper {
  background-image: url('/static/bgi2.webp');
  background-position: top left;
  background-repeat: no-repeat;
  padding: 80px;
  border: 2px solid #f1c7ee;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 900px;
  background-size: 800px;
  display: flex;
  align-items: flex-start;
}

/* Main content areas */
.section {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
}

.content {
  text-align: left;
}

.column .content  {
  text-align: center;
}



/* Buttons */
.button {
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  transition: all 0.2s ease;
}

.button.is-primary {
  background: linear-gradient(135deg, #f1c7ee 0%, #e8a5e8 50%, #d67fd6 100%);
  border: none;
  color: #333333;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(241, 199, 238, 0.4);
  transition: all 0.3s ease;
}

.button.is-primary:hover {
  background: linear-gradient(135deg, #e8a5e8 0%, #d67fd6 50%, #c95bc9 100%);
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 199, 238, 0.6);
}

.button:not(.is-primary) {
  background-color: #ffffff;
  border: var(--border-strong);
  color: #000000;
}

.button:not(.is-primary):hover {
  background-color: rgba(248, 248, 248, 0.9);
  color: #000000;
}

/* Forms */
.input, .textarea, .select select {
  border: var(--border-subtle);
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.95);
  color: #000000;
  font-family: var(--font-sans);
  padding: 0.75rem;
  transition: border-color 0.2s ease;
  backdrop-filter: blur(2px);
}

/* Fix dropdown being cut off */
.select {
  position: relative;
  overflow: visible !important;
}

.select select {
  position: relative;
  z-index: 50;
  height: auto;
  min-height: 2.5rem;
  line-height: 1.4;
  padding: 0.75rem;
  box-sizing: border-box;
}

/* Ensure containers don't clip dropdowns */
.rsvp-background-wrapper,
.box {
  overflow: visible !important;
}

/* Ensure form containers allow dropdowns to expand */
#rsvp-form .field {
  overflow: visible;
  position: relative;
}

.input::placeholder, .textarea::placeholder {
  color: #666666;
}

/* Labels */
.label {
  color: #000000 !important;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.094rem; /* 25% larger than 0.875rem */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* RSVP Search Results */
.search-results {
  background-color: #ffffff;
  border: var(--border-subtle);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.dropdown-item {
  color: #000000 !important;
  background-color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-family: var(--font-sans) !important;
  transition: background-color 0.2s ease !important;
  display: block !important;
  text-decoration: none !important;
  border-radius: 0 !important;
}

.dropdown-item:hover,
a.dropdown-item:hover {
  background-color: #f1c7ee !important;
  color: #000000 !important;
  text-decoration: none !important;
}

.dropdown-item:last-child {
  border-bottom: none !important;
}

.dropdown-item:focus,
a.dropdown-item:focus {
  background-color: #f1c7ee !important;
  color: #000000 !important;
  outline: none !important;
}

/* Extra specificity to override Bulma */
a.dropdown-item {
  color: #000000 !important;
  background-color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-family: var(--font-sans) !important;
  transition: background-color 0.2s ease !important;
  display: block !important;
  text-decoration: none !important;
  border-radius: 0 !important;
}

/* Nuclear option - maximum specificity */
div.search-results a.dropdown-item:hover {
  background-color: #f1c7ee !important;
  background: #f1c7ee !important;
  color: #000000 !important;
  text-decoration: none !important;
}

div.search-results a.dropdown-item {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #000000 !important;
}

/* Selected Guest Display */
.selected-guest {
  background-color: #f8f8f8;
  border: var(--border-subtle);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.selected-guest strong {
  color: #000000;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

/* Notifications */
.notification {
  border-radius: 0;
  border-left: 3px solid;
  background-color: #f8f8f8;
  color: #000000;
  padding: 1rem;
}

.notification.is-success {
  border-left-color: #000000;
  background-color: #f0f8f0;
}

.notification.is-danger {
  border-left-color: #000000;
  background-color: #f8f0f0;
}

/* Tables */
.table {
  background-color: #ffffff;
  border-collapse: collapse;
  width: 100%;
}

.table td, .table th {
  border: var(--border-subtle);
  padding: 0.75rem;
  text-align: left;
  color: #000000;
	overflow-wrap: anywhere;
}

.table th {
  font-family: var(--font-serif);
  font-weight: 400;
  background-color: #f8f8f8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.094rem; /* 25% larger than 0.875rem */
}

/* Code blocks */
pre {
  background-color: #f8f8f8;
  border: var(--border-subtle);
  border-radius: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #000000;
  font-family: "Monaco", "Menlo", monospace;
}

/* Form sections */
.form-section {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: var(--border-subtle);
}

.form-section:first-child {
  border-top: none;
  padding-top: 0;
}

/* Checkboxes and Radio buttons */
.checkbox, .radio {
  color: #000000 !important;
  font-family: var(--font-sans);
}

.checkbox input[type="checkbox"], .radio input[type="radio"] {
  margin-right: 0.5rem;
}

/* Section dividers */
.section-divider {
  border: none;
  border-top: var(--border-subtle);
  margin: 4rem 0;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* Content sections without boxes */
.section .content {
  margin-bottom: 3rem;
}

.section .content:last-child {
  margin-bottom: 0;
}

/* Navbar title responsive behavior */
.navbar-title-full {
  display: inline !important;
}

.navbar-title-mobile {
  display: none !important;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .wedding-hero .hero-body {
    padding: 4rem 3rem;
  }
  
  .wedding-hero .content-box {
    max-width: 350px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .wedding-hero {
    width: 100%;
  }
  
  .wedding-hero .title {
    font-size: 3.125rem; /* 25% larger than 2.5rem */
  }
  
  .wedding-hero .subtitle {
    font-size: 1.5625rem; /* 25% larger than 1.25rem */
  }
  
  .title {
    font-size: 2.5rem; /* 25% larger than 2rem */
  }
  
  .subtitle {
    font-size: 1.25rem; /* 25% larger than 1rem */
	text-align: center;
  }
  
  .box, .card {
    padding: 1.5rem;
  }
  
  .button {
    margin-bottom: 0.75rem;
  }
  
  .wedding-hero .button {
    width: auto;
    margin-bottom: 0.75rem;
  }
  
  .wedding-hero .hero-body {
    padding: 2rem 1rem;
    justify-content: center;
  }
  
  .wedding-hero .container {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .wedding-hero .content-box {
    max-width: 100%;
    text-align: center;
    display: block;
  }
  
  .wedding-hero .button {
    padding: 1rem 2rem;
    font-size: 1.25rem; /* 25% larger than 1rem */
  }
  
  .navbar-item {
    padding: 0.5rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000000 !important;
  }
  
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
  }
  
  .navbar-menu .navbar-item {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000000 !important;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-menu .navbar-item:hover {
    background-color: rgba(248, 248, 248, 0.9);
    color: #000000 !important;
  }
  
  .navbar-burger {
    color: #000000 !important;
  }
  
  .navbar-burger span {
    background-color: #000000 !important;
  }
  
  .navbar-burger:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Show only mobile title on small screens */
  .navbar-title-full {
    display: none !important;
  }
  
  .navbar-title-mobile {
    display: inline !important;
  }
  
  .section-divider {
    width: 80%;
    margin: 3rem auto;
  }
  
  /* Adjust RSVP wrapper for mobile */
  .rsvp-background-wrapper {
    min-height: calc(100vh - 100px);
    padding: 40px;
    background-size: 400px 300px;
    border: 1px solid #f1c7ee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

.content p {
  margin-bottom: 0.2rem !important; /* Adjust as needed */
}

/* Responsive Map Container */
.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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

#map { height: 400px; width: 100%; }

/* Stop framework CSS from touching Google controls */
#map .gm-style * {
  box-sizing: content-box !important;
  font: 400 11px/1 Arial, sans-serif !important;
  text-shadow: none !important;
}

/* Reset buttons and their children */
#map .gm-style button,
#map .gm-style button * {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

/* Kill any framework-generated pseudo elements on buttons */
#map .gm-style button::before,
#map .gm-style button::after {
  content: none !important;
}

/* Keep images from being resized by global rules */
#map img,
#map .gm-style-cc img {
  max-width: none !important;
}

    .faq-section {
        margin-bottom: 3rem;
    }

    .faq-item {
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 1rem;
    }

    .faq-question {
        padding: 1.5rem 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s ease;
        user-select: none;
    }

    .faq-question:hover {
        background-color: rgba(248, 248, 248, 0.9);
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 4px;
        backdrop-filter: blur(2px);
    }

    .faq-question .title {
        margin-bottom: 0 !important;
        flex-grow: 1;
        color: #000000;
        font-family: var(--font-serif);
        transition: color 0.2s ease;
    }

    .faq-question:hover .title {
        color: #666666;
    }

    .faq-toggle {
        font-size: 1.875rem;
        /* 25% larger than 1.5rem */
        font-weight: bold;
        color: #000000;
        margin-left: 1rem;
        transition: all 0.2s ease;
        user-select: none;
        width: 30px;
        text-align: center;
        flex-shrink: 0;
    }

    .faq-question:hover .faq-toggle {
        color: #666666;
    }

    .faq-answer {
        padding: 0 0 1.5rem 0;
        border-left: 3px solid #f1c7ee;
        padding-left: 1rem;
        margin-left: 0.5rem;
        background-color: rgba(254, 254, 254, 0.95);
        backdrop-filter: blur(2px);
        overflow: hidden;
        display: none;
        /* Default hidden */
    }

    .faq-answer .content {
        margin-bottom: 0;
    }

    .faq-answer .content p {
        color: #000000 !important;
        margin-bottom: 0.75rem !important;
    }

    .faq-answer .content ul {
        margin-left: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .faq-answer .content li {
        color: #000000 !important;
        margin-bottom: 0.25rem;
    }

    /* Remove default section padding for tighter layout */
    .faq-page-section {
        padding-top: 1rem !important;
        padding-bottom: 3rem !important;
    }

    /* Image styling */
    .finer-details-image {
        position: sticky;
        top: 2rem;
    }

    .finer-details-image .image img {
        width: 100%;
        height: auto;
        min-height: 800px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .faq-page-section {
            padding-top: 0.5rem !important;
            padding-bottom: 2rem !important;
        }

        .columns {
            flex-direction: column-reverse;
        }

        .finer-details-image {
            position: static;
            margin-bottom: 2rem;
        }

        .finer-details-image .image img {
            width: 100%;
            min-height: 300px;
            object-fit: cover;
        }

        .faq-question {
            padding: 1rem 0;
        }

        .faq-question:hover {
            margin: 0 -0.5rem;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            background-color: rgba(248, 248, 248, 0.9);
            backdrop-filter: blur(2px);
        }

        .faq-question:hover .title {
            color: #666666;
        }

        .faq-question:hover .faq-toggle {
            color: #666666;
        }

        .faq-question .title {
            font-size: 1.40625rem;
            /* 25% larger than 1.125rem */
        }

        .faq-toggle {
            font-size: 1.5625rem;
            /* 25% larger than 1.25rem */
            margin-left: 0.5rem;
            width: 25px;
        }

        .faq-answer {
            padding-left: 0.75rem;
            margin-left: 0.25rem;
        }
    }