@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #bfdbfe 100%);
    overflow-x: hidden;
}

.invitation-card {
    background: white;
    border: 8px solid #3b82f6;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.bunting {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 40px;
    background: repeating-linear-gradient(90deg,
            #ffd700 0px,
            #ffd700 20px,
            #ff6b6b 20px,
            #ff6b6b 40px,
            #4ecdc4 40px,
            #4ecdc4 60px,
            #ffe66d 60px,
            #ffe66d 80px);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 10;
}

.bunting-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 40px;
    background: repeating-linear-gradient(90deg,
            #ff6b6b 0px,
            #ff6b6b 20px,
            #4ecdc4 20px,
            #4ecdc4 40px,
            #ffe66d 40px,
            #ffe66d 60px,
            #ffd700 60px,
            #ffd700 80px);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    z-index: 10;
}

.gold-frame {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 4px solid #d4af37;
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transform: rotate(-2deg);
    margin: 0 8px;
}

.sparkle-star {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.decorative-icon {
    display: inline-block;
    margin: 0 8px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.section-divider {
    border-top: 2px dashed #3b82f6;
    margin: 0;
    position: relative;
    height: 1px;
}

.section-wrapper {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .section-wrapper {
        padding: 2.5rem;
    }
}

.section-divider::before,
.section-divider::after {
    position: absolute;
    top: -12px;
    background: white;
    padding: 0 10px;
}

.section-divider::before {
    left: 20px;
}

.section-divider::after {
    right: 20px;
}

.photo-gallery-card {
    border: 3px solid #3b82f6;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Photo Carousel Styles */
.photo-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.photo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%;
}

.photo-carousel-slide {
    min-width: 20%;
    width: 20%;
    flex-shrink: 0;
}

.photo-carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.photo-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.photo-carousel-btn:hover {
    background: rgba(59, 130, 246, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.photo-carousel-prev {
    left: 15px;
}

.photo-carousel-next {
    right: 15px;
}

.photo-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
}

.photo-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.3);
}

.photo-carousel-dot:hover {
    background: #60a5fa;
}

@media (max-width: 768px) {
    .photo-carousel-image {
        height: 300px;
    }

    .photo-carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .photo-carousel-prev {
        left: 10px;
    }

    .photo-carousel-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .invitation-card {
        border-width: 4px;
    }

    .bunting,
    .bunting-bottom {
        width: 100px;
        height: 30px;
    }

    .gold-frame {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

.rsvp-button {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border: 3px solid #1d4ed8;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.rsvp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

.cat-decoration {
    display: inline-block;
    animation: cat-float 4s ease-in-out infinite;
    font-size: 2rem;
}

@keyframes cat-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.cat-bounce {
    animation: cat-bounce 2s ease-in-out infinite;
}

@keyframes cat-bounce {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.floating-cat {
    position: fixed;
    font-size: 4rem;
    pointer-events: none;
    z-index: 40;
    animation: floating-cat-move 8s ease-in-out infinite;
}

.floating-cat-large {
    position: fixed;
    font-size: 5rem;
    pointer-events: none;
    z-index: 40;
    animation: floating-cat-move 10s ease-in-out infinite;
    opacity: 0.7;
}

.side-cat-left {
    position: fixed;
    left: 10px;
    font-size: 4.5rem;
    pointer-events: none;
    z-index: 40;
    animation: side-cat-float 6s ease-in-out infinite;
    opacity: 0.8;
}

.side-cat-right {
    position: fixed;
    right: 10px;
    font-size: 4.5rem;
    pointer-events: none;
    z-index: 40;
    animation: side-cat-float 6s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes side-cat-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(-10deg);
    }

    50% {
        transform: translateY(-30px) rotate(0deg);
    }

    75% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@media (max-width: 768px) {

    .floating-cat,
    .floating-cat-large {
        font-size: 3rem;
    }

    .side-cat-left,
    .side-cat-right {
        font-size: 3rem;
    }

    .hide-mobile {
        display: none;
    }
}

.video-container {
    position: relative;
    width: 300px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .video-container {
        width: 300px;
        height: 500px;
        border-radius: 15px;
        border-width: 3px;
    }
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-input:valid {
    border-color: #10b981;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border: 3px solid #1d4ed8;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

.form-number-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-number-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-checkbox-container:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.form-checkbox-label {
    font-weight: 500;
    color: #1e40af;
    cursor: pointer;
    user-select: none;
    flex: 1;
    line-height: 1.5;
}

.form-checkbox-label:hover {
    color: #3b82f6;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: 'Poppins', sans-serif;
}

.cat-image {
    max-width: 200px;
    height: auto;
    border-radius: 20px;
    border: 4px solid #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    animation: cat-bounce 3s ease-in-out infinite;
    margin: 0 auto;
    display: block;
}

.cat-image-small {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    animation: cat-bounce 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cat-image {
        max-width: 150px;
    }

    .cat-image-small {
        max-width: 120px;
    }
}

@keyframes floating-cat-move {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translate(20px, -30px) rotate(10deg);
        opacity: 0.8;
    }

    50% {
        transform: translate(-15px, -50px) rotate(-10deg);
        opacity: 0.7;
    }

    75% {
        transform: translate(15px, -20px) rotate(5deg);
        opacity: 0.8;
    }
}

