/* ==========================================
   RESPONSIVE MOBILE-FIRST WEDDING INVITATION
   ========================================== */

:root {
    --primary-color: #d4a5a5;
    --secondary-color: #fff8f7;
    --accent-color: #8b6f6f;
    --text-color: #333;
    --light-bg: #fafafa;
    --border-color: #e0d5d5;
    --success-color: #4caf50;
    --error-color: #f44336;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* ==========================================
   VIDEO SECTION (LANDING PAGE)
   ========================================== */

.video-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
    z-index: 200;
}

.video-section.fade-out {
    opacity: 0;
    pointer-events: none;
}

.fullscreen-video {
    width: auto;
    height: 100vh;
    aspect-ratio: 1080 / 1920;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.tap-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.tap-indicator svg {
    animation: pulse 1.5s infinite;
}

/* Invisible Maps Button (positioned where "Click here" text is on main video) */
.maps-button-invisible {
    position: absolute;
    display: block;
    width: 180px;
    height: 120px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    bottom: 32%;
    right: 3%;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   MAIN VIDEO SECTION (Section 1)
   ========================================== */

.main-video-section {
    width: 100%;
    height: auto;
    background-color: #000;
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.main-video-section[style*="display: flex"] {
    display: flex !important;
}

.main-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 5000;
    display: block;
    background-color: #000;
}

/* Hide all video controls */
.main-video::-webkit-media-controls {
    display: none !important;
}

.main-video::-webkit-media-controls-panel {
    display: none !important;
}

.main-video::-webkit-media-controls-play-button {
    display: none !important;
}

.main-video::-webkit-media-controls-volume-control-container {
    display: none !important;
}

.main-video::cue {
    background: transparent;
}

/* ==========================================
   RSVP SECTION (Section 2)
   ========================================== */

.rsvp-section {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
}

.rsvp-section[style*="display: block"] {
    display: flex !important;
}

.rsvp-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(212, 165, 165, 0.15);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

/* FORM STYLING */

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-size: 13px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
}

/* BUTTON STYLING */

.btn-submit {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c896a0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SUCCESS & ERROR MESSAGES */

.success-message,
.error-message {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.success-message svg {
    flex-shrink: 0;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.footer {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #6f5252 100%);
    color: white;
    text-align: center;
    font-size: 13px;
    border-top: 2px solid var(--primary-color);
    display: none; /* Hidden by default, shown via JS */
}

.footer[style*="display: block"] {
    display: block !important;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */

@media (min-width: 768px) {
    .rsvp-container {
        padding: 40px 30px;
        max-width: 600px;
    }

    .section-title {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .rsvp-form {
        gap: 24px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .btn-submit {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - DESKTOP
   ========================================== */

@media (min-width: 1024px) {
    .video-section {
        height: 100vh;
    }

    .rsvp-section {
        padding: 60px 40px;
    }

    .rsvp-container {
        padding: 50px 40px;
        max-width: 700px;
    }

    .section-title {
        font-size: 48px;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .rsvp-form {
        gap: 28px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.hidden {
    display: none !important;
}

/* SCROLLBAR STYLING */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
