/* Greeting overlay - popup giữa màn hình */
.greeting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.greeting-overlay.show {
    opacity: 1;
}

.greeting-content {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.4);
    max-width: 90%;
}

.greeting-title {
    font-size: 3rem;
    /* font-family: "Dancing Script", cursive; */
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 165, 0, 0.9);
    opacity: 0;
    transform: scale(0.5) translateY(-30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.greeting-overlay.show .greeting-title {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.greeting-message {
    font-size: 1.4rem;
    color: #FFF9E6;
    margin: 0;
    line-height: 1.8;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.5s;
    margin-bottom: 40px;
}

.greeting-overlay.show .greeting-message {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation button - bottom right */
.popup-next-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF1493 0%, #FFB6C1 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: auto;
}

.greeting-overlay.show .popup-next-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.popup-next-btn:hover {
    background: linear-gradient(135deg, #FF69B4 0%, #FFD1DC 100%);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
    transform: translateY(-2px);
}

.popup-next-btn:active {
    transform: translateY(0);
}

.greeting-overlay.show .greeting-message {
    opacity: 1;
    transform: translateY(0);
}

/* Center button - bottom center */
.popup-center-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    /* Tắt click khi ẩn */
}

.gift-overlay.show .popup-center-btn {
    opacity: 1;
    pointer-events: auto;
    /* Chỉ bật click khi overlay hiện */
    transition-delay: 0.8s;
}

.popup-center-btn:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB84D 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
    transform: translateX(-50%) translateY(-3px);
}

.popup-center-btn:active {
    transform: translateX(-50%) translateY(0);
}

/* Gift Overlays - Same style as greeting */
.gift-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.gift-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.gift-content {
    text-align: center;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    border: 2px solid rgba(255, 105, 180, 0.8);
    box-shadow:
        0 0 30px rgba(255, 105, 180, 0.6),
        0 0 60px rgba(255, 20, 147, 0.4),
        inset 0 0 40px rgba(255, 105, 180, 0.1);
    max-width: 500px;
    width: 90%;
}

.gift-title {
    font-size: 2.5rem;
    /* font-family: "Dancing Script", cursive; */
    font-weight: 700;
    color: #FF69B4;
    margin: 0 0 1.5rem 0;
    text-shadow:
        0 0 10px rgba(255, 105, 180, 1),
        0 0 25px rgba(255, 20, 147, 0.9),
        0 0 40px rgba(255, 69, 0, 0.6);
}

.gift-message {
    font-size: 1.3rem;
    color: #FFF0F5;
    margin: 0 0 3.5rem 0;
    line-height: 1.8;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.gift-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    font-family: inherit;
}

.gift-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, #FF1493, #FF69B4);
}

.gift-btn:active {
    transform: translateY(0);
}

/* Gift Form */
#gift-form {
    width: 100%;
}

.gift-form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.gift-form-group label {
    display: block;
    font-size: 1.1rem;
    color: #FFB6C1;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gift-form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid rgba(255, 105, 180, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.gift-form-group input:focus {
    outline: none;
    border-color: #FF69B4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

.gift-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Date/Time input specific */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .greeting-title {
        font-size: 2rem;
    }

    .greeting-message {
        font-size: 1.1rem;
    }

    .greeting-content {
        padding: 1.5rem;
    }

    .gift-title {
        font-size: 2rem;
    }

    .gift-message {
        font-size: 1.1rem;
    }

    .gift-content {
        padding: 2rem;
        height: auto;
    }

    .gift-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

@media (max-width: 480px) {
    .greeting-title {
        font-size: 1.6rem;
    }

    .greeting-message {
        font-size: 0.95rem;
    }

    .gift-title {
        font-size: 1.6rem;
    }

    .gift-message {
        font-size: 0.95rem;
    }

    .gift-content {
        padding: 1.5rem;
        height: auto;
    }

    .gift-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}