:root {
    /* Цветовая палитра */
    --color-bg: #EEE9E1;
    --color-heading: #4A3727;
    --color-text: #6D5240;
    --color-text-secondary: #C7BBAF;
    --color-line: #8C6E54;
    --color-button-bg: #7A5432;
    --color-button-text: #F9F6F1;

    /* Шрифты */
    --font-script: 'Caveat', cursive;
    --font-serif: 'Cormorant Garamond', serif;

    /* Размеры */
    --max-width: 900px;
    --spacing-section: 80px;
    --spacing-medium: 40px;
    --spacing-small: 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-heart {
    width: 80px;
    height: 80px;
    position: relative;
}

.preloader-heart svg {
    width: 100%;
    height: 100%;
    fill: var(--color-button-bg);
    animation: heartbeat 1.3s ease-in-out infinite;
}

/* Пульсирующие круги вокруг сердца */
.preloader-heart::before,
.preloader-heart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-button-bg);
    opacity: 0;
    animation: pulse 1.3s ease-in-out infinite;
}

.preloader-heart::after {
    animation-delay: 0.15s;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.15);
    }
    10% {
        transform: scale(0.92);
    }
    15% {
        transform: scale(1.2);
    }
    25% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
    }
    50% {
        transform: scale(0.95);
    }
    55% {
        transform: scale(1.12);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Блокировка анимаций до загрузки */
body.preloader-active * {
    animation-play-state: paused !important;
}

@keyframes fallAndLand {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }

    75% {
        transform: translateY(-15px) rotate(0deg) scale(1);
    }

    85% {
        transform: translateY(5px) rotate(0deg) scale(1);
    }

    95% {
        transform: translateY(-3px) rotate(0deg) scale(1);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes rotateToFinal {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

@keyframes rotateToFinalGirl {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(4deg);
    }
}

body {
    background-image: url('/assets/images/background.webp');
    background-position: bottom right;
    background-repeat: repeat;
    color: var(--color-text);
    font-family: var(--font-serif);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.polaroid-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 15px;
    position: relative;
}

.polaroid-container {
    max-width: 768px;
    width: 100%;
    position: relative;
    min-height: 650px;
    margin: 0 auto;
    padding: 0;
}

.boy-group {
    position: absolute;
    left: 5%;
    top: 0;
    z-index: 2;
    animation: slideInFromLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    transform: translateX(-120px) rotate(-8deg) scale(0.95);
    opacity: 0;
}

.girl-group {
    position: absolute;
    right: 5%;
    top: 310px;
    z-index: 1;
    animation: slideInFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    transform: translateX(120px) rotate(8deg) scale(0.95);
    opacity: 0;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-120px) rotate(-8deg) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(120px) rotate(8deg) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

.polaroid {
    background: #f8f6f0;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.polaroid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.polaroid-boy {
    transform: rotate(-5deg);
}

.polaroid-boy:hover .polaroid {
    transform: rotate(-3deg) translateY(-5px);
}

.polaroid-girl {
    transform: rotate(4deg);
}

.polaroid-girl:hover .polaroid {
    transform: rotate(2deg) translateY(-5px);
}

.polaroid-frame {
    width: 180px;
    height: 245px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    font-family: var(--font-script);
    font-size: 28px;
    color: #6e4c38;
    text-align: center;
    margin: 12px 0 0 0;
    font-weight: 500;
}

.handwritten-text {
    font-family: var(--font-script);
    font-size: 26px;
    color: #6e4c38;
    margin: 0;
    position: absolute;
    font-weight: 500;
    line-height: 1.2;
    white-space: normal;
}

.boy-text {
    top: 50%;
    left: calc(100% + 15px);
    max-width: 140px;
    transform: translateY(-50%) rotate(-3deg);
}

.girl-text {
    top: 45%;
    right: calc(100% + 15px);
    max-width: 100px;
    transform: translateY(-50%) rotate(3deg);
    width: 200px;
}

@media (max-width: 768px) {
    .polaroid-section {
        padding: 60px 15px;
        min-height: auto;
    }

    .polaroid-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: 650px;
        margin: 0 auto;
        display: block;
        padding: 0;
    }

    .boy-group {
        position: absolute;
        left: 5%;
        top: 0;
        z-index: 2;
    }

    .girl-group {
        position: absolute;
        right: 5%;
        top: 310px;
        z-index: 1;
    }

    .polaroid-boy {
        transform: rotate(-5deg);
    }

    .polaroid-girl {
        transform: rotate(4deg);
    }

    .polaroid-frame {
        width: 180px;
        height: 245px;
    }

    .polaroid-caption {
        font-size: 28px;
    }

    .handwritten-text {
        font-size: 26px;
        line-height: 1.2;
    }

    .boy-text {
        top: 50%;
        left: calc(100% + 15px);
        max-width: 140px;
        transform: translateY(-50%) rotate(-3deg);
        white-space: wrap;
    }

    .girl-text {
        right: calc(100% + 32px);
        max-width: 100px;
        transform: translateY(-50%) rotate(3deg);
    }
}

@media (max-width: 600px) {
    .polaroid-section {
        padding: 50px 10px;
    }

    .polaroid-container {
        min-height: 600px;
    }

    .boy-group {
        left: 3%;
    }

    .girl-group {
        right: 3%;
    }

    .polaroid-caption {
        font-size: 26px;
    }

    .handwritten-text {
        font-size: 24px;
    }

    .boy-text {
        left: calc(100% + 12px);
        max-width: 130px;
    }

    .girl-text {
        right: calc(100% + 12px);
        max-width: 95px;
    }
}

.invitation-section {
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    margin-top: 30px;
}

.invitation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(238, 176, 142, 0.37);
    z-index: 1;
}

.invitation-container {
    max-width: 768px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
    background: rgba(249, 246, 241, 0.88);
    border-radius: 2px;
    border-radius: 12px;
}

.invitation-title {
    font-family: var(--font-script);
    font-size: 52px;
    color: #5a4534;
    margin: 0 0 40px 0;
    font-weight: 600;
    line-height: 1.3;
}

.invitation-text {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.9;
    color: #6e4c38;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .invitation-section {
        padding: 60px 15px;
    }

    .invitation-container {
        padding: 50px 30px;
    }

    .invitation-title {
        font-size: 42px;
        margin-bottom: 30px;
    }

    .invitation-text {
        font-size: 20px;
        line-height: 1.8;
    }
}

@media (max-width: 600px) {
    .invitation-section {
        padding: 50px 15px;
    }

    .invitation-container {
        padding: 40px 25px;
    }

    .invitation-title {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .invitation-text {
        font-size: 18px;
        line-height: 1.7;
    }
}

@media (max-width: 400px) {
    .invitation-container {
        padding: 35px 20px;
    }

    .invitation-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
}

.dresscode {
    margin-top: 60px;
    text-align: center;
}

.dresscode-title {
    font-family: var(--font-script);
    font-size: 42px;
    color: #5E4633;
    font-weight: 600;
    margin-bottom: 20px;
}

.dresscode-desc {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #5E4633;
    line-height: 1.4;
    max-width: 85%;
    margin: 0 auto;
    font-weight: 400;
}

.palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.palette .color {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-50px) scale(0.5);
}

.palette .color.animate-in {
    animation: slideInColor 0.5s ease-out forwards;
}

@keyframes slideInColor {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 768px) {
    .dresscode {
        margin-top: 50px;
    }

    .dresscode-title {
        font-size: 38px;
    }

    .dresscode-desc {
        font-size: 17px;
        max-width: 90%;
    }

    .palette .color {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 600px) {
    .dresscode {
        margin-top: 45px;
    }

    .dresscode-title {
        font-size: 34px;
    }

    .dresscode-desc {
        font-size: 16px;
        line-height: 1.5;
    }

    .palette {
        gap: 10px;
        margin-top: 25px;
    }

    .palette .color {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 400px) {
    .dresscode {
        margin-top: 40px;
    }

    .dresscode-title {
        font-size: 30px;
    }

    .dresscode-desc {
        font-size: 15px;
    }

    .palette {
        gap: 8px;
        margin-top: 20px;
    }

    .palette .color {
        width: 48px;
        height: 48px;
    }
}

.gifts {
    margin-top: 60px;
    text-align: center;
}

.title-script {
    font-family: var(--font-script);
    font-size: 40px;
    color: #5E4633;
    font-weight: 600;
    margin: 0 0 0 0;
}

.gift-info-card {
    background: #A18F7C;
    border-radius: 20px;
    padding: 28px 32px;
    margin: 0 auto;
    max-width: 90%;
}

.gift-info-card p {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.gift-info-card p+p {
    margin-top: 20px;
}

.survey-title {
    margin-top: 48px;
    font-size: 36px;
}

.survey-desc {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #5E4633;
    line-height: 1.4;
    max-width: 85%;
    margin: 0 auto 30px;
}

.survey-alarm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #F5EFE7;
    border: 2px solid #8C7460;
    border-radius: 12px;
    margin: 0 auto 30px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(140, 116, 96, 0.15);
    animation: pulseAlarm 2s ease-in-out infinite;
}

.alarm-icon {
    width: 24px;
    height: 24px;
    fill: #7A5432;
    flex-shrink: 0;
}

.alarm-text {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: #5E4633;
    margin: 0;
    line-height: 1.3;
}

.survey-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: #A18F7C;
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 32px;
    max-width: 550px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.modal.is-open .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #5E4633;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #3d2b1f;
}

.modal-title {
    font-family: var(--font-script);
    font-size: 36px;
    color: #5E4633;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Survey Form Styles */
.survey-form {
    font-family: var(--font-serif);
    display: flex;
    flex-direction: column;
    align-items: start;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.survey-form.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.form-group {
    margin-bottom: 32px;
}

.form-group > label:first-child {
    display: block;
    font-family: var(--font-script);
    font-size: 22px;
    color: #5E4633;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

.required {
    color: #c54444;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d7cdb9;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-serif);
    color: #5E4633;
    background: #fefdfb;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    caret-color: #5E4633;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #A18F7C;
    caret-color: #5E4633;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #5E4633;
    font-weight: 400;
    position: relative;
    padding-left: 32px;
    user-select: none;
}

/* Скрываем стандартные radio и checkbox */
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомные radio и checkbox */
.radio-label::before,
.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #A18F7C;
    background: #fefdfb;
    transition: all 0.3s ease;
}

.radio-label::before {
    border-radius: 50%;
}

.checkbox-label::before {
    border-radius: 4px;
}

/* Внутренний кружок/галочка для radio */
.radio-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5E4633;
    transition: transform 0.2s ease;
}

/* Галочка для checkbox */
.checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 5px;
    height: 10px;
    border: solid #5E4633;
    border-width: 0 2px 2px 0;
    transition: transform 0.2s ease;
}

/* Состояние checked */
.radio-label input[type="radio"]:checked ~ span,
.checkbox-label input[type="checkbox"]:checked ~ span {
    font-weight: 500;
}

.radio-label input[type="radio"]:checked::before {
    left: 0;
}

.radio-label:has(input[type="radio"]:checked)::before,
.checkbox-label:has(input[type="checkbox"]:checked)::before {
    background: #F3EEE6;
    border-color: #5E4633;
}

.radio-label:has(input[type="radio"]:checked)::after {
    transform: translateY(-50%) scale(1);
}

.checkbox-label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Hover эффект */
.radio-label:hover::before,
.checkbox-label:hover::before {
    border-color: #5E4633;
}

.other-input {
    margin-top: 8px;
    margin-left: 32px;
    display: none;
    transition: opacity 0.3s ease;
}

.other-input.visible {
    display: block;
}

.form-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    display: none;
    font-family: var(--font-serif);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.form-message.success {
    display: block;
    background: #F3EEE6;
    color: #5E4633;
    border: 2px solid #A18F7C;
    font-weight: 500;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-submit {
    width: 100%;
    padding: 16px 32px;
    background: #A18F7C;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    background: #8d7a68;
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    background: #d7cdb9;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .gifts {
        margin-top: 50px;
    }

    .title-script {
        font-size: 36px;
    }

    .gift-info-card {
        padding: 24px 28px;
    }

    .gift-info-card p {
        font-size: 17px;
    }

    .survey-title {
        font-size: 32px;
        margin-top: 42px;
    }

    .survey-desc {
        font-size: 17px;
    }

    .survey-alarm {
        gap: 10px;
        padding: 14px 20px;
        max-width: 95%;
    }

    .alarm-icon {
        width: 22px;
        height: 22px;
    }

    .alarm-text {
        font-size: 15px;
    }

    .survey-btn {
        font-size: 17px;
        padding: 15px 32px;
    }

    .modal-title {
        font-size: 32px;
    }

    .form-group > label:first-child {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .gifts {
        margin-top: 45px;
    }

    .title-script {
        font-size: 32px;
    }

    .gift-info-card {
        padding: 22px 24px;
        border-radius: 18px;
    }

    .gift-info-card p {
        font-size: 16px;
        line-height: 1.5;
    }

    .gift-info-card p+p {
        margin-top: 18px;
    }

    .survey-title {
        font-size: 28px;
        margin-top: 38px;
    }

    .survey-desc {
        font-size: 16px;
        max-width: 90%;
        margin-bottom: 26px;
    }

    .survey-btn {
        font-size: 16px;
        padding: 14px 28px;
    }

    .modal {
        padding: 15px;
    }

    .modal-container {
        padding: 28px 24px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 28px;
    }

    .form-group > label:first-child {
        font-size: 18px;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group input[type="text"] {
        font-size: 14px;
        padding: 10px 14px;
    }

    .radio-label,
    .checkbox-label {
        font-size: 14px;
        padding-left: 30px;
    }

    .radio-label::before,
    .checkbox-label::before {
        width: 18px;
        height: 18px;
    }

    .radio-label::after {
        left: 6px;
        width: 8px;
        height: 8px;
    }

    .checkbox-label::after {
        left: 6px;
        width: 5px;
        height: 9px;
    }

    .form-message {
        font-size: 17px;
        padding: 14px 18px;
    }

    .form-submit {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media (max-width: 400px) {
    .gifts {
        margin-top: 40px;
    }

    .title-script {
        font-size: 28px;
    }

    .gift-info-card {
        padding: 20px;
        border-radius: 16px;
        max-width: 95%;
    }

    .gift-info-card p {
        font-size: 15px;
    }

    .gift-info-card p+p {
        margin-top: 16px;
    }

    .survey-title {
        font-size: 26px;
        margin-top: 36px;
    }

    .survey-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .survey-alarm {
        gap: 8px;
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
    }

    .alarm-icon {
        width: 20px;
        height: 20px;
    }

    .alarm-text {
        font-size: 14px;
    }

    .survey-btn {
        font-size: 15px;
        padding: 13px 24px;
    }

    .modal {
        padding: 10px;
    }

    .modal-container {
        padding: 24px 20px;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group > label:first-child {
        font-size: 17px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .form-group input[type="text"] {
        font-size: 14px;
        padding: 10px 12px;
    }

    .radio-label,
    .checkbox-label {
        font-size: 14px;
        padding-left: 28px;
    }

    .radio-label::before,
    .checkbox-label::before {
        width: 17px;
        height: 17px;
    }

    .radio-label::after {
        left: 6px;
        width: 7px;
        height: 7px;
    }

    .checkbox-label::after {
        left: 6px;
        width: 4px;
        height: 8px;
    }

    .form-message {
        font-size: 16px;
        padding: 14px 16px;
        line-height: 1.4;
    }

    .form-submit {
        font-size: 15px;
        padding: 13px 24px;
    }
}

.final-block {
    padding: 20px 20px 0;
}

.final-container {
    max-width: 768px;
    margin: 0 auto;
}

.contact-card {
    background: #A18F7C;
    border-radius: 20px;
    padding: 26px 32px;
    text-align: center;
    max-width: 480px;
    margin-top: 50px;
}

.contact-card p {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
}

.contact-card p+p {
    margin-top: 14px;
}

.phone-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.phone-link:hover {
    opacity: 0.85;
}

.polaroid-final {
    background: #F3EEE6;
    border-radius: 6px;
    padding: 12px 12px 52px;
    max-width: 280px;
    margin: 40px auto 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.58);
    transform: rotate(3deg);
    opacity: 0;
    transform: translateY(80px) rotate(-10deg) scale(0.9);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid-final.animate-in {
    opacity: 1;
    transform: translateY(0) rotate(3deg) scale(1);
}

.polaroid-final:hover {
    transform: translateY(-5px) rotate(1deg) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(80px) rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(3deg) scale(1);
    }
}

.photo-slot {
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url('/assets/images/kuzi.png');
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.signature {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-script);
    font-size: 30px;
    color: #5E4633;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .final-block {
        padding: 20px 15px 0;
    }

    .contact-card {
        padding: 24px 28px;
        max-width: 450px;
    }

    .contact-card p {
        font-size: 19px;
    }

    .polaroid-final {
        max-width: 75%;
        margin-top: 35px;
    }

    .signature {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .final-block {
        padding: 20px 15px 0;
    }

    .contact-card {
        padding: 22px 26px;
        border-radius: 18px;
    }

    .contact-card p {
        font-size: 18px;
        line-height: 1.5;
    }

    .contact-card p+p {
        margin-top: 10px;
    }

    .polaroid-final {
        padding: 10px 10px 46px;
        margin-top: 32px;
    }

    .signature {
        font-size: 26px;
    }
}

@media (max-width: 400px) {
    .final-block {
        padding: 20px 10px 0;
    }

    .contact-card {
        padding: 20px 24px;
        border-radius: 16px;
        max-width: 95%;
    }

    .contact-card p {
        font-size: 17px;
    }

    .polaroid-final {
        padding: 10px 10px 42px;
        margin-top: 28px;
    }

    .signature {
        font-size: 24px;
    }
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c7a687, transparent);
}

.divider::before {
    background: linear-gradient(to right, transparent, #c7a687);
    margin-right: 20px;
}

.divider::after {
    background: linear-gradient(to left, transparent, #c7a687);
    margin-left: 20px;
}

.divider-heart {
    width: 30px;
    height: 30px;
    fill: #c7a687;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .divider::before {
        margin-right: 15px;
    }

    .divider::after {
        margin-left: 15px;
    }

    .divider-heart {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 600px) {
    .divider::before {
        margin-right: 12px;
    }

    .divider::after {
        margin-left: 12px;
    }

    .divider-heart {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .divider::before {
        margin-right: 10px;
    }

    .divider::after {
        margin-left: 10px;
    }

    .divider-heart {
        width: 20px;
        height: 20px;
    }
}

.timeline-wrapper {
    max-width: 768px;
    width: 100%;
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.timeline-month {
    font-family: var(--font-script);
    font-size: 48px;
    color: #5a4534;
    text-align: center;
    margin: 30px 0 0 0;
    font-weight: 600;
    opacity: 0;
    position: relative;
}

.timeline-month.animate-write {
    animation: writeText 1.5s ease-out forwards;
}

@keyframes writeText {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 125px;
    bottom: 0;
    width: 2px;
    background: #6e4c38;
    transform: translateX(-50%);
}

.timeline-date-marker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    z-index: 3;
}

.date-heart-svg {
    width: 140px;
    height: 140px;
    fill: #5a4534;
}

.date-number {
    position: absolute;
    font-family: var(--font-script);
    font-size: 50px;
    font-weight: 600;
    color: #f9f6f1;
    top: 50%;
    left: 49%;
    transform: translate(-50%, -50%);
}

.timeline-event {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-event.animate-in {
    animation: slideUpEvent 0.6s ease-out forwards;
}

@keyframes slideUpEvent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-event.timeline-left {
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
}

.timeline-event.timeline-right {
    justify-content: flex-start;
    padding-left: calc(50% + 30px);
}

.event-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
}

.event-marker svg {
    width: 100%;
    height: 100%;
    fill: #5a4534;
}

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

.timeline-event.timeline-left .event-content {
    text-align: right;
}

.timeline-event.timeline-right .event-content {
    text-align: left;
}

.event-time {
    font-family: var(--font-script);
    font-size: 20px;
    color: #6e4c38;
    font-weight: 500;
}

.event-title {
    font-family: var(--font-script);
    font-size: 28px;
    color: #5a4534;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 768px) {

    .timeline-month {
        font-size: 40px;
    }

    .date-heart-svg {
        width: 110px;
        height: 110px;
    }

    .date-number {
        font-size: 40px;
    }

    .timeline-event.timeline-left {
        padding-right: calc(50% + 25px);
    }

    .timeline-event.timeline-right {
        padding-left: calc(50% + 25px);
    }

    .event-marker {
        font-size: 18px;
    }

    .event-time {
        font-size: 18px;
    }

    .event-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .timeline-month {
        font-size: 36px;
    }

    .date-heart-svg {
        width: 90px;
        height: 90px;
    }

    .date-number {
        font-size: 32px;
    }

    .timeline-event.timeline-left {
        padding-right: calc(50% + 20px);
    }

    .timeline-event.timeline-right {
        padding-left: calc(50% + 20px);
    }

    .event-marker {
        font-size: 16px;
    }

    .event-time {
        font-size: 16px;
    }

    .event-title {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .timeline-line {
        top: 105px;
    }

    .timeline-month {
        font-size: 32px;
    }

    .date-heart-svg {
        width: 75px;
        height: 75px;
    }

    .date-number {
        font-size: 28px;
    }
}

.location-card {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-header {
    background: #5A4534C4;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.title-large {
    font-family: var(--font-script);
    font-size: 40px;
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.2;
}

.title-small {
    font-family: var(--font-script);
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 400;
    margin-top: -5px;
}

.address {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 5px 0 5px 0;
    font-weight: 400;
}

.venue-name {
    font-family: var(--font-script);
    font-size: 28px;
    color: #FFFFFF;
    font-weight: 500;
    margin-top: 15px;
    opacity: 0.95;
}

.route-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 22px;
    margin-top: 20px;
    background: #E8E5E5;
    color: #73685c;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.route-button svg {
    flex-shrink: 0;
}

.location-photo {
    width: 100%;
    height: 400px;
    background-image: url('/assets/images/rancho.webp');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .location-header {
        padding: 40px 30px;
    }

    .title-large {
        font-size: 36px;
    }

    .title-small {
        font-size: 22px;
    }

    .address {
        font-size: 18px;
    }

    .venue-name {
        font-size: 26px;
    }

    .route-button {
        font-size: 17px;
    }

    .location-photo {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .location-header {
        padding: 35px 25px;
    }

    .title-large {
        font-size: 32px;
    }

    .title-small {
        font-size: 20px;
    }

    .address {
        font-size: 16px;
        line-height: 1.5;
    }

    .venue-name {
        font-size: 24px;
        margin-top: 12px;
    }

    .route-button {
        font-size: 16px;
        margin-top: 18px;
    }

    .location-photo {
        height: 300px;
    }
}

@media (max-width: 400px) {
    .location-card {
        border-radius: 16px;
    }

    .location-header {
        padding: 30px 20px;
        gap: 12px;
    }

    .title-large {
        font-size: 26px;
    }

    .title-small {
        font-size: 18px;
    }

    .address {
        font-size: 15px;
    }

    .venue-name {
        font-size: 22px;
        margin-top: 10px;
    }

    .route-button {
        font-size: 15px;
        margin-top: 0;
        gap: 8px;
    }

    .route-button svg {
        width: 18px;
        height: 18px;
    }

    .location-photo {
        height: 250px;
    }
}

@media (max-width: 350px) {
    .polaroid-section {
        padding: 40px 8px;
    }

    .polaroid-container {
        min-height: 550px;
    }

    .boy-group {
        left: 2%;
    }

    .girl-group {
        right: 2%;
        top: 280px;
    }

    .polaroid-frame {
        width: 150px;
        height: 210px;
    }

    .polaroid-caption {
        font-size: 22px;
    }

    .handwritten-text {
        font-size: 20px;
    }

    .boy-text {
        left: calc(100% + 8px);
        max-width: 110px;
    }

    .girl-text {
        right: calc(100% + 8px);
        max-width: 85px;
    }

    .invitation-section {
        padding: 40px 10px;
    }

    .invitation-container {
        padding: 28px 15px;
        border-radius: 10px;
    }

    .invitation-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .invitation-text {
        font-size: 14px;
    }

    .dresscode {
        margin-top: 35px;
    }

    .dresscode-title {
        font-size: 26px;
    }

    .dresscode-desc {
        font-size: 14px;
    }

    .palette {
        gap: 6px;
        flex-wrap: wrap;
    }

    .palette .color {
        width: 42px;
        height: 42px;
    }

    .gifts {
        margin-top: 35px;
    }

    .title-script {
        font-size: 26px;
    }

    .gift-info-card {
        padding: 18px 16px;
    }

    .gift-info-card p {
        font-size: 14px;
    }

    .survey-title {
        font-size: 24px;
        margin-top: 32px;
    }

    .survey-desc {
        font-size: 14px;
    }

    .survey-btn {
        font-size: 14px;
        padding: 11px 20px;
    }

    .timeline-wrapper {
        padding: 30px 8px 50px;
    }

    .timeline-line {
        top: 90px;
    }

    .timeline-month {
        font-size: 28px;
    }

    .date-heart-svg {
        width: 65px;
        height: 65px;
    }

    .date-number {
        font-size: 24px;
    }

    .event-marker {
        width: 20px;
        height: 20px;
    }

    .event-time {
        font-size: 13px;
    }

    .event-title {
        font-size: 16px;
    }

    .location-header {
        padding: 25px 15px;
    }

    .title-large {
        font-size: 26px;
    }

    .title-small {
        font-size: 16px;
    }

    .address {
        font-size: 14px;
    }

    .venue-name {
        font-size: 20px;
    }

    .route-button {
        font-size: 14px;
        padding: 10px 18px;
    }

    .location-photo {
        height: 220px;
    }

    .modal {
        padding: 8px;
    }

    .modal-container {
        padding: 20px 16px;
        max-height: 92vh;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group > label:first-child {
        font-size: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input[type="text"] {
        font-size: 13px;
        padding: 9px 11px;
    }

    .radio-label,
    .checkbox-label {
        font-size: 13px;
        padding-left: 26px;
    }

    .radio-label::before,
    .checkbox-label::before {
        width: 16px;
        height: 16px;
    }

    .radio-label::after {
        left: 5.5px;
        width: 8px;
        height: 8px;
    }

    .checkbox-label::after {
        left: 5px;
        width: 4px;
        height: 8px;
    }

    .form-message {
        font-size: 14px;
        padding: 12px 14px;
        line-height: 1.4;
    }

    .form-submit {
        font-size: 14px;
        padding: 12px 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .final-block {
        padding: 20px 10px 0;
    }

    .contact-card {
        padding: 18px 20px;
        max-width: 95%;
    }

    .contact-card p {
        font-size: 16px;
    }

    .polaroid-final {
        padding: 8px 8px 38px;
        margin-top: 26px;
    }

    .signature {
        font-size: 22px;
    }
}

@media (max-width: 280px) {
    .polaroid-frame {
        width: 130px;
        height: 180px;
    }

    .polaroid-caption {
        font-size: 20px;
    }

    .handwritten-text {
        font-size: 18px;
    }

    .boy-text {
        left: calc(100% + 6px);
        max-width: 95px;
    }

    .girl-text {
        right: calc(100% + 6px);
        max-width: 75px;
    }

    .girl-group {
        top: 250px;
    }

    .invitation-title {
        font-size: 24px;
    }

    .invitation-text {
        font-size: 13px;
    }

    .dresscode-title {
        font-size: 24px;
    }

    .dresscode-desc {
        font-size: 13px;
    }

    .palette .color {
        width: 38px;
        height: 38px;
    }

    .title-script {
        font-size: 24px;
    }

    .gift-info-card p {
        font-size: 13px;
    }

    .survey-title {
        font-size: 22px;
    }

    .survey-desc {
        font-size: 13px;
    }

    .survey-btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    .timeline-month {
        font-size: 26px;
    }

    .date-heart-svg {
        width: 55px;
        height: 55px;
    }

    .date-number {
        font-size: 20px;
    }

    .timeline-line {
        top: 80px;
    }

    .event-time {
        font-size: 12px;
    }

    .event-title {
        font-size: 15px;
    }

    .title-large {
        font-size: 24px;
    }

    .address {
        font-size: 13px;
    }

    .venue-name {
        font-size: 18px;
    }

    .route-button {
        font-size: 13px;
        padding: 9px 16px;
    }

    .location-photo {
        height: 200px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group > label:first-child {
        font-size: 15px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input[type="text"] {
        font-size: 12px;
        padding: 8px 10px;
    }

    .radio-label,
    .checkbox-label {
        font-size: 12px;
        padding-left: 24px;
    }

    .radio-label::before,
    .checkbox-label::before {
        width: 15px;
        height: 15px;
        border-width: 1.5px;
    }

    .radio-label::after {
        left: 4px;
        width: 7px;
        height: 7px;
    }

    .checkbox-label::after {
        left: 4.5px;
        width: 4px;
        height: 7px;
    }

    .form-submit {
        font-size: 13px;
        padding: 11px 18px;
    }

    .form-message {
        font-size: 13px;
        padding: 10px 12px;
        line-height: 1.4;
    }

    .contact-card p {
        font-size: 15px;
    }

    .polaroid-final {
        padding: 8px 8px 36px;
    }

    .signature {
        font-size: 20px;
    }
}