/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Deep Blue */
    --primary-50: #e8f0f5;
    --primary-100: #c5d9e8;
    --primary-500: #15397F;
    --primary-600: #0f2d66;
    --primary-700: #0a1f4d;
    
    /* Gold Accents */
    --gold-300: #f4d03f;
    --gold-400: #d4af37;
    --gold-500: #b8941f;
    --gold-600: #9a7a0f;
    
    /* Neutral Colors */
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --black: #000000;
    
    /* Legacy support - map old rose colors to new primary */
    --rose-50: var(--primary-50);
    --rose-500: var(--primary-500);
    --rose-600: var(--primary-600);
}

body {
    font-family: "Lobster", sans-serif;
    line-height: 1.6;
    color: var(--stone-900);
    background-color: #33302F;
    font-weight: 400;
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
}

/* Better font support for Latvian characters - slightly smaller */
html[lang="lv"] body,
html[lang="lv"] {
    font-family: "Lobster", sans-serif;
    font-size: 1rem;
}

/* Make Latvian text slightly smaller throughout */
html[lang="lv"] .nav-brand {
    font-size: 1.125rem;
}

html[lang="lv"] .nav-links button[data-section] {
    font-size: 1rem;
}

html[lang="lv"] .hero-title {
    font-size: 2.5rem;
}

@media (min-width: 640px) {
    html[lang="lv"] .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    html[lang="lv"] .hero-title {
        font-size: 6.5rem;
    }
}

html[lang="lv"] .section-header h2 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    html[lang="lv"] .section-header h2 {
        font-size: 3.25rem;
    }
}

html[lang="lv"] .story-title {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    html[lang="lv"] .story-title {
        font-size: 3.25rem;
    }
}

html[lang="lv"] .story-text p {
    font-size: 1.25rem;
}

html[lang="lv"] .detail-content h3 {
    font-size: 1.75rem;
}

html[lang="lv"] .detail-item {
    font-size: 1.125rem;
}

html[lang="lv"] .dress-code-card h3 {
    font-size: 1.75rem;
}

html[lang="lv"] .dress-code-card p {
    font-size: 1.125rem;
}

html[lang="lv"] .info-card h3 {
    font-size: 1.75rem;
}

html[lang="lv"] .info-card p {
    font-size: 1.125rem;
}

html[lang="lv"] .form-group label {
    font-size: 1.125rem;
}

html[lang="lv"] .form-group input[type="text"],
html[lang="lv"] .form-group input[type="email"],
html[lang="lv"] .form-group input[type="number"],
html[lang="lv"] .form-group textarea {
    font-size: 1.125rem;
}

html[lang="lv"] .radio-item label {
    font-size: 1.125rem;
}

html[lang="lv"] .btn-primary {
    font-size: 1.125rem;
}

html[lang="lv"] .section-subtitle {
    font-size: 1.125rem;
}

html[lang="lv"] .footer-brand {
    font-size: 1.625rem;
}

html[lang="lv"] .footer-bottom p {
    font-size: 0.9375rem;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transition: color 0.15s ease;
    cursor: pointer;
    font-family: "Lobster", sans-serif;
    font-size: 1.25rem;
}

.nav.scrolled .nav-brand {
    color: var(--stone-900);
}

.heart-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    transition: color 0.3s ease;
}

.nav.scrolled .heart-icon {
    color: var(--primary-500);
}

.nav-links {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

/* Show language switcher on mobile */
.language-switcher {
    display: flex;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links button[data-section] {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.15s ease;
    text-transform: capitalize;
    font-family: "Lobster", sans-serif;
    font-size: 1.125rem;
}

.nav.scrolled .nav-links button[data-section] {
    color: var(--stone-600);
}

.nav-links button[data-section]:hover {
    color: var(--primary-500);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem;
    backdrop-filter: blur(4px);
}

.nav.scrolled .language-switcher {
    background: rgba(21, 57, 127, 0.1);
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav.scrolled .lang-btn {
    color: var(--stone-600);
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.nav.scrolled .lang-btn:hover {
    color: var(--primary-500);
    background: rgba(21, 57, 127, 0.1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .lang-btn.active {
    background: var(--primary-500);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 640px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

@media (max-width: 640px) {
    .hero-image img {
        object-position: left center;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 1rem;
}

.hero-subtitle {
    font-family: "Great Vibes", cursive;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: none;
    margin-bottom: 1rem;
    opacity: 0.95;
    color: var(--gold-400);
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 2rem;
    }
}

.hero-title {
    font-family: "Great Vibes", cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-name-first,
.hero-name-second {
    display: block;
}

.hero-ampersand {
    display: block;
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 4.5rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero-ampersand {
        font-size: inherit;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 7rem;
        gap: 1rem;
    }
}

.hero-divider {
    width: 6rem;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-400), transparent);
    margin: 1.5rem auto;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .hero-info {
        font-size: 1.25rem;
    }
}

@media (min-width: 640px) {
    .hero-info {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-separator {
    display: none;
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 640px) {
    .hero-separator {
        display: block;
    }
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
    z-index: 10;
}

@media (max-width: 640px) {
    .scroll-indicator {
        bottom: 6rem;
    }
    
    .scroll-mouse {
        width: 1.75rem;
        height: 2.75rem;
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .scroll-wheel {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateX(-50%) translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-white {
    background-color: white;
}

.bg-stone {
    background-color: #33302F;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.container-small {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-small {
        padding: 0 1.5rem;
    }
}

.container-medium {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-medium {
        padding: 0 1.5rem;
    }
}

.container-large {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-large {
        padding: 0 1.5rem;
    }
}

.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-full {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container-full {
        padding: 0 3rem;
    }
}

@media (min-width: 1280px) {
    .container-full {
        padding: 0 4rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.heart-icon-large {
    width: 2rem;
    height: 2rem;
    color: var(--gold-400);
    margin: 0 auto 1rem;
}

.gift-icon {
    width: 2rem;
    height: 2rem;
    color: var(--gold-400);
    margin: 0 auto 1rem;
}

.section-header h2 {
    font-family: "Great Vibes", cursive;
    font-size: 2.75rem;
    color: var(--gold-400);
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3.5rem;
    }
}

.section-divider {
    width: 6rem;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-400), transparent);
    margin: 0 auto;
}

.section-subtitle {
    color: white;
    margin-top: 1rem;
    font-family: "Lobster", sans-serif;
    font-size: 1.25rem;
}

/* Our Story */
.story-section {
    background-color: var(--stone-900);
    color: white;
}

.story-header {
    text-align: center;
    margin-bottom: 2rem;
}

.story-title {
    font-family: "Great Vibes", cursive;
    font-size: 2.75rem;
    color: var(--gold-400);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .story-title {
        font-size: 3.5rem;
    }
}

.story-text {
    margin-bottom: 3rem;
    text-align: left;
}

.story-text p {
    font-size: 1.375rem;
    color: white;
    line-height: 1.75;
    margin: 0;
    font-family: "Lobster", sans-serif;
}

.story-click-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #072454;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--gold-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-click-hint svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .story-click-hint {
        display: flex;
    }
}

@media (min-width: 768px) {
    .story-click-hint {
        display: none;
    }
}

/* Story Grid - 10 Images */
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

/* Desktop: 5 columns, 2 rows */
@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.story-item {
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.story-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.story-year {
    font-family: "Great Vibes", cursive;
    font-size: 0.875rem;
    font-weight: 400;
    font-style: normal;
    color: var(--gold-400);
    text-align: center;
    padding: 0.5rem 0.75rem;
    background-color: #072454;
    border-bottom: 1px solid rgba(21, 57, 127, 0.1);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .story-year {
        font-size: 1rem;
        padding: 0.625rem 1rem;
    }
}

.story-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: White;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.story-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.story-image-wrapper:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.story-image-wrapper::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.story-image-wrapper:hover::before {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .story-image-wrapper::before {
        font-size: 2rem;
    }
}

.story-image {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Landscape images - fill the container */
.story-image.landscape {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Portrait images - fit within, don't fill all */
.story-image.portrait {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.story-item:hover .story-image {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Wedding Details */
.details-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-card {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.detail-image {
    height: 16rem;
    position: relative;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    padding: 2rem;
}

.detail-content h3 {
    font-family: "Great Vibes", cursive;
    font-size: 1.875rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: normal;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--stone-600);
    font-size: 1.25rem;
    font-family: "Lobster", sans-serif;
}

.icon-rose {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold-400);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.text-sm {
    font-size: 1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.map-link-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.map-link:hover {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
}

.map-link:hover .map-link-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dress-code-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

.dress-code-card h3 {
    font-family: "Great Vibes", cursive;
    font-size: 1.875rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: normal;
}

.dress-code-card p {
    color: var(--stone-600);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.25rem;
    font-family: "Lobster", sans-serif;
}

.dress-code-card p:last-of-type {
    margin-bottom: 2rem;
}

.dress-code-color {
    font-size: 1.5rem;
    color: var(--primary-500);
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.dress-code-color strong {
    font-weight: 700;
}

.dress-code-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
    position: relative;
}

/* More space for Russian text */
html[lang="ru"] .dress-code-images {
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .dress-code-images {
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .dress-code-image {
        min-height: 150px;
    }
}

.dress-code-image {
    width: 100%;
    border-radius: 0.5rem;
    overflow: visible;
    box-shadow: 0 4px 6px -1px rgba(21, 57, 127, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.dress-code-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
    overflow: hidden;
}

.dress-code-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.dress-code-image:first-child .dress-code-color {
    position: absolute;
    top: -2rem;
    left: 0;
    margin: 0;
    z-index: 1;
    white-space: nowrap;
}

/* Russian language - longer text needs more space */
html[lang="ru"] .dress-code-image:first-child .dress-code-color {
    top: -2.5rem;
}

/* Latvian language - shorter text */
html[lang="lv"] .dress-code-image:first-child .dress-code-color {
    top: -2rem;
}

.dress-code-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px -2px rgba(21, 57, 127, 0.15);
}

.dress-code-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* RSVP Form */
.form-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--stone-900);
    font-size: 1.25rem;
    font-family: "Lobster", sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    transition: all 0.15s ease;
    background-color: #f9fafb;
    font-family: "Lobster", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(21, 57, 127, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-500);
    cursor: pointer;
}

.radio-item label {
    cursor: pointer;
    margin: 0;
    font-size: 1.25rem;
    font-family: "Lobster", sans-serif;
}

.hidden {
    display: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(21, 57, 127, 0.2);
    font-family: "Lobster", sans-serif;
    font-size: 1.25rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: 0 6px 12px rgba(21, 57, 127, 0.3);
    transform: translateY(-2px);
}

/* Registry */
.registry-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .registry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.registry-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(21, 57, 127, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.registry-card:hover {
    box-shadow: 0 20px 25px -5px rgba(21, 57, 127, 0.2);
    border-color: var(--gold-400);
    transform: translateY(-4px);
}

.registry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.registry-card h3 {
    font-family: "Great Vibes", cursive;
    font-size: 1.25rem;
    color: var(--primary-500);
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: normal;
}

.registry-card p {
    color: var(--stone-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background-color: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 57, 127, 0.2);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(21, 57, 127, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.info-card:hover {
    box-shadow: 0 12px 24px -4px rgba(21, 57, 127, 0.15);
    transform: translateY(-4px);
    border-color: var(--gold-400);
}

.info-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.5rem;
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(21, 57, 127, 0.05) 0%, rgba(21, 57, 127, 0.1) 100%);
    border-radius: 50%;
    padding: 0.75rem;
}

.info-icon svg {
    width: 2rem;
    height: 2rem;
}

.info-card h3 {
    font-family: "Great Vibes", cursive;
    font-size: 1.875rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: normal;
}

.info-card p {
    color: var(--stone-600);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: "Lobster", sans-serif;
}

.info-card p strong {
    color: var(--primary-500);
    font-weight: 600;
}

.info-contact {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(21, 57, 127, 0.2);
}

.info-contact:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 57, 127, 0.3);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--stone-900);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.footer-brand .heart-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-date {
    color: var(--stone-400);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--stone-400);
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--stone-800);
    padding-top: 2rem;
}

.footer-bottom p {
    color: var(--stone-500);
    font-size: 1rem;
    font-family: "Lobster", sans-serif;
}

.footer-bottom a {
    color: var(--gold-400);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: var(--stone-600);
    margin-top: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-500);
    flex-shrink: 0;
}

#toast-message {
    color: var(--stone-900);
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

@media (max-width: 767px) {
    .image-modal {
        padding: 1rem;
    }
    
    .image-modal-close {
        top: -3rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(21, 57, 127, 0.3);
    width: 2.5rem;
    height: 2.5rem;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: 0 6px 16px rgba(21, 57, 127, 0.4);
    transform: translateY(-2px);
}

.back-to-top-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.375rem;
    }
    
    .back-to-top-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}