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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #FF7F50;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF7F50;
}

/* Music Control */
.music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d19a9a, #b87676);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(209, 154, 154, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.music-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(209, 154, 154, 0.4);
}

.music-button:active {
    transform: scale(0.95);
}

.music-button i {
    transition: all 0.3s ease;
}

/* Waiting for interaction animation */
.music-button.waiting-for-interaction {
    animation: pulse 2s infinite;
}

.music-button.waiting-for-interaction::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    border: 2px solid rgba(209, 154, 154, 0.5);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 127, 80, 0.3), rgba(255, 218, 185, 0.3));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-subtitle {
     font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle.save-the-date {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1px;
    font-style: italic;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-date {
    font-size: 24px;
    font-weight: 500;
    margin-top: 20px;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Common Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #FF7F50;
    margin-bottom: 20px;
}

.floral-divider {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Invitation Section */
.invitation {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFDAB9 100%);
}

.invitation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.invitation-text {
    font-size: 20px;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
}

.calendar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(209, 154, 154, 0.1);
    margin: 0 auto;
}

.calendar-header h3 {
    text-align: center;
    color: #d19a9a;
    margin-bottom: 20px;
    font-size: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day {
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.header {
    background: #d19a9a;
    color: white;
    font-weight: 600;
    font-size: 12px;
    min-height: 35px;
}

.calendar-day.current {
    background: #d19a9a;
    color: white;
    position: relative;
}

.calendar-day.wedding-day {
    background: transparent;
    color: #d19a9a;
    font-weight: bold;
    position: relative;
    /* border: 2px solid #d19a9a; */
    animation: pulse 2s infinite;
}

.calendar-day.wedding-day::before {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #d19a9a;
    animation: heartbeat 1.5s infinite;
}

.calendar-day.wedding-day::after {
    content: attr(data-day);
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    font-weight: 600;
    color: #d19a9a;
}

.calendar-day.current::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #FF7F50;
    border-radius: 50%;
}

/* Event Info Section */
.event-info {
    background: white;
}

.event-details {
    display: flex;
    justify-content: center;
}

.event-card {
    background: linear-gradient(135deg, #FF7F50, #FFDAB9);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(255, 127, 80, 0.3);
}

.event-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.event-time {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.event-location {
    font-size: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.direction-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #FF7F50;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.direction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-gallery{
  display:flex; justify-content:center; align-items:flex-start;
  gap:20px; flex-wrap:nowrap; margin:30px 0;
}

.polaroid{
  background:#fff; padding:10px 10px 25px; border:1px solid #ddd;
  box-shadow:0 6px 15px rgba(0,0,0,.2);
  flex:1 1 45%; max-width:300px;
}

.polaroid img{width:100%; height:auto; display:block; border-radius:2px;}

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

/* trạng thái trước khi xuất hiện: trượt lệch + giữ góc */
.polaroid.left:not(.inview){ opacity:0; transform:translateX(-60px) rotate(-5deg); }
.polaroid.right:not(.inview){ opacity:0; transform:translateX(60px) rotate(5deg); }

/* khi vào viewport: chỉ trượt về 0, vẫn giữ góc */
.polaroid.left.inview{ animation:slideInLeft .9s ease both; }
.polaroid.right.inview{ animation:slideInRight .9s ease both; }

@keyframes slideInLeft{
  from{ opacity:0; transform:translateX(-60px) rotate(-5deg); }
  to  { opacity:1; transform:translateX(0) rotate(-5deg); }
}
@keyframes slideInRight{
  from{ opacity:0; transform:translateX(60px) rotate(5deg); }
  to  { opacity:1; transform:translateX(0) rotate(5deg); }
}

/* mobile vẫn trái-phải nhưng thu nhỏ */
@media (max-width:480px){
  .photo-gallery{ gap:10px; }
  .polaroid{ max-width:45%; padding:8px 8px 20px; }
}

/* tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce){
  .polaroid.left.inview, .polaroid.right.inview{
    animation:none; opacity:1;
    transform:translateX(0) rotate(var(--keep, 0));
  }
}


/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFDAB9 100%);
}

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

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
}

.timeline-time {
    background: #FF7F50;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    min-width: 80px;
    text-align: center;
    margin-right: 30px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.1);
}

.timeline-content h3 {
    color: #FF7F50;
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Dress Code Section */
.dress-code {
    background: white;
}

.dress-code-content {
    text-align: center;
}

.dress-code-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-item span {
    font-weight: 500;
    color: #666;
}

/* Album Section */
.album {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFDAB9 100%);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(209, 154, 154, 0.15);
    transition: all 0.3s ease;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* RSVP Section */
.rsvp {
    background: white;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFDAB9 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 127, 80, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4A4A4A;
}

.required {
    color: #FF7F50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFDAB9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group select optgroup {
    font-weight: 600;
    color: #d19a9a;
    background: #f8f9fa;
    font-style: normal;
    padding: 5px 0;
}

.form-group select option {
    color: #4A4A4A;
    background: white;
    font-weight: normal;
    padding: 8px 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF7F50;
}

.submit-btn {
    background: linear-gradient(135deg, #d19a9a, #b87676);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 154, 154, 0.4);
    background: linear-gradient(135deg, #b87676, #a06464);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Countdown Section */
.countdown {
    position: relative;
    background: linear-gradient(135deg, #d19a9a 0%, #b87676 50%, #a06464 100%);
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.countdown-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.heart:before {
    top: -10px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -10px;
}

.heart:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.heart:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.heart:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.heart:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.heart:nth-child(5) {
    top: 50%;
    left: 40%;
    animation-delay: 3s;
    animation-duration: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
        opacity: 1;
    }
}

.countdown .section-title {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.countdown-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wedding-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.wedding-date,
.wedding-venue {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wedding-date i,
.wedding-venue i {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Thank You Section */
.thank-you {
    background: white;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-title {
    font-size: 3rem;
    color: #FF7F50;
    margin-bottom: 30px;
}

.thank-you-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #666;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #FF7F50;
}

/* Footer */
.footer {
    background: #4A4A4A;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer i {
    color: #FF7F50;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-text {
    margin-top: 15rem;
    animation: fadeInUp 1s ease forwards;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-date {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .invitation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .music-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .timeline-time {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .color-palette {
        gap: 20px;
    }
    
    .countdown-timer {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .countdown .section-title {
        font-size: 2.5rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .time-unit {
        min-width: 100px;
        padding: 25px 20px;
    }
    
    .time-value {
        font-size: 2.5rem;
    }
    
    .time-label {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .wedding-info {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .wedding-date,
    .wedding-venue {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .masonry-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .masonry-item {
        margin-bottom: 15px;
    }
    
    .rsvp-form {
        padding: 30px 20px;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-text {
        font-size: 18px;
    }
    
    .couple-names {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .music-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .event-card {
        padding: 30px 20px;
    }
    
    .calendar-widget {
        width: 100%;
        margin: 20px auto 0;
    }
    
    .calendar-day {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 35px;
    }
    
    .calendar-day.header {
        font-size: 10px;
        min-height: 30px;
    }
    
    .calendar-day.wedding-day::before {
        font-size: 12px;
        top: -3px;
        right: -3px;
    }
    
    .color-palette {
        gap: 15px;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    .countdown-timer {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .countdown .section-title {
        font-size: 2rem;
    }
    
    .countdown-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 20px 15px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .wedding-info {
        gap: 15px;
    }
    
    .wedding-date,
    .wedding-venue {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .rsvp-success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .rsvp-success-notification h3 {
        font-size: 1rem;
    }
    
    .rsvp-success-notification p {
        font-size: 0.9rem;
    }
    
    .masonry-grid {
        column-count: 2;
        column-gap: 10px;
    }
    
    .masonry-item {
        margin-bottom: 10px;
    }
}

/* Gift Section */
.gifting {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF8F0, #F5F0E8);
}

/* QR Container visibility states */
.qr-container.qr-visible {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.qr-container.qr-visible .qr-account-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gift-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.gift-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #666;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    /* width: 100%; */
    margin-bottom: 20px;
    display: none; /* Default hidden state */
}

/* When visible, apply specific layout based on responsive classes */

.qr-account-group {
    flex: 1;
    width: 400px;
    text-align: center;
    background: rgba(255, 248, 240, 0.5);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(209, 154, 154, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qr-account-group:hover {
    border-color: rgba(209, 154, 154, 0.4);
    box-shadow: 0 5px 15px rgba(209, 154, 154, 0.1);
    transform: translateY(-2px);
}

.qr-code {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    max-width: 180px;
    width: 100%;
    border-radius: 8px;
    border: 3px solid #d19a9a;
}

.account-info {
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.account-info h3 {
    color: #d19a9a;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid rgba(209, 154, 154, 0.2);
    padding-bottom: 10px;
}

.account-info p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info p strong {
    color: #d19a9a;
    font-weight: 600;
    min-width: 80px;
}

.account-info p span {
    font-weight: 500;
    color: #333;
    font-family: 'Courier New', monospace;
}

.copy-account {
    background: linear-gradient(135deg, #d19a9a, #b87676);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: auto auto 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 200px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.copy-account::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.copy-account:hover::before {
    left: 100%;
}

.copy-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(209, 154, 154, 0.4);
    background: linear-gradient(135deg, #b87676, #a56565);
}

.copy-account i {
    margin-right: 8px;
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(135deg, #d19a9a, #b87676);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(209, 154, 154, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(209, 154, 154, 0.4);
}

.btn-primary i {
    margin-right: 8px;
}

/* Mobile responsive for gift section */
@media (max-width: 768px) {
    .gift-text {
        font-size: 16px;
    }
    
    .qr-container {
        padding: 20px;
        margin: 0 20px;
        max-width: 100%;
        gap: 20px;
    }
    
    /* Force column layout on mobile when visible */
    .qr-container[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .qr-account-group {
        max-width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .qr-account-group:last-child {
        margin-bottom: 0;
    }
    
    .qr-code {
        padding: 10px;
    }
    
    .qr-code img {
        max-width: 150px;
    }
    
    .account-info {
        padding: 15px;
    }
    
    .account-info p {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .account-info h3 {
        font-size: 16px;
    }
    
    .copy-account {
        font-size: 12px;
        padding: 10px 15px;
        max-width: 180px;
    }
}

/* Desktop specific styles to ensure side-by-side layout */
@media (min-width: 769px) {
    /* Mobile responsive QR layout */
    .qr-container.qr-visible {
        flex-direction: column;
        align-items: center;
    }
    
    .qr-container.qr-visible .qr-account-group {
        /* width: 100%;
        max-width: 300px; */
        margin-bottom: 20px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification.warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Heart animation for wedding day */
@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.2);
    }
}

/* RSVP Success Notification */
.rsvp-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d19a9a, #b87676);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(209, 154, 154, 0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.5s ease-out;
}

.rsvp-success-notification .notification-content {
    text-align: center;
}

.rsvp-success-notification i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.rsvp-success-notification h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.rsvp-success-notification p {
    margin: 5px 0;
    line-height: 1.4;
}

.rsvp-success-notification .message-preview {
    font-style: italic;
    opacity: 0.9;
    margin-top: 10px;
    font-size: 0.9rem;
}

.rsvp-success-notification.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Pulse animation for calendar wedding day */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(209, 154, 154, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(209, 154, 154, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(209, 154, 154, 0);
    }
}
