.relax-wrapper {
    width: 100%;

    box-sizing: border-box;
}

.relax-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.relax-header {
    margin-bottom: 15px;
    width: 100%;
}

.relax-header h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

.relax-header p {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
    word-break: break-word;
    transition: all 0.3s ease;
    max-height: 100px;
    opacity: 1;
}

.relax-header p.hidden {
    display: none;
    max-height: 0;
    opacity: 0;
}

/* BUTTON WRAPPER - Vertical Stack */
.relax-btn-wrapper {
    margin: 12px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Main Show Button */
.relax-btn-wrapper button#relaxShowBtn {
    background: linear-gradient(135deg, #d4af37 0%, #f7e7a9 50%, #c9a227 100%);
    background-size: 200% 200%;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #3a2c00;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.relax-btn-wrapper button#relaxShowBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
}

.relax-btn-wrapper button#relaxShowBtn:active:not(:disabled) {
    transform: translateY(-1px);
}

.relax-btn-wrapper button#relaxShowBtn.active {
    background: linear-gradient(135deg, #1e90ff 0%, #4facfe 50%, #0066cc 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.relax-btn-wrapper button#relaxShowBtn:disabled {
    background: linear-gradient(135deg, #999 0%, #bbb 50%, #777 100%);
    color: #fff;
    cursor: not-allowed;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
}

/* CTA Container */
.relax-cta-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.relax-cta-container.show {
    display: flex;
}

/* Expired Button */
.relax-expired-btn {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 50%, #c40000 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: not-allowed;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.8;
}

/* CTA Button - Buy */
.relax-cta-btn {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 50%, #1e7e34 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.relax-cta-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 80%
    );
    animation: relax-premium-shine 3s infinite;
}

@keyframes relax-premium-shine {
    0% {
        left: -100%;
        top: -100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

.relax-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.6);
}

.relax-cta-btn:active {
    transform: translateY(-1px);
}

/* TIMER DISPLAY */
.relax-timer {
    display: none;
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    margin-top: 8px;
}

.relax-timer.show {
    display: block;
}

/* CARD WRAPPER */
.relax-card-wrapper {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease;
    opacity: 0;
    margin: 0;
    box-sizing: border-box;
}

.relax-card-wrapper.show {
    max-height: 600px;
    opacity: 1;
    margin: 15px 0;
}

.relax-card-container {
    width: 400px;
    height: 250px;
    perspective: 1200px;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
}

.relax-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.relax-card.flipped {
    transform: rotateY(180deg);
}

.relax-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    top: 0;
    left: 0;
}

.relax-card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.relax-card-back {
    transform: rotateY(180deg);
}

/* EXPIRY RIBBON */
.relax-expiry-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 150%;
    height: 45px;
    background: linear-gradient(90deg, #ff4d4d 0%, #c40000 50%, #ff4d4d 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.relax-expiry-ribbon.show {
    display: flex;
    animation: relax-ribbon-appear 0.5s ease;
}

@keyframes relax-ribbon-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
    }
}

.relax-expiry-ribbon-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    letter-spacing: 1.5px;
    font-style: italic;
}

/* MODAL STYLES */
.relax-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.relax-modal-overlay.show {
    display: flex;
    animation: relax-fade-in 0.3s ease;
}

@keyframes relax-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.relax-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: relax-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes relax-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.relax-modal h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.relax-modal p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.relax-contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.relax-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid #d4af37;
    border-radius: 12px;
    background: white;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.relax-contact-btn:hover {
    background: #d4af37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

.relax-contact-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.relax-contact-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

.relax-contact-btn.phone {
    border-color: #4facfe;
    color: #4facfe;
}

.relax-contact-btn.phone:hover {
    background: #4facfe;
    color: white;
}

.relax-contact-btn.email {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.relax-contact-btn.email:hover {
    background: #ff6b6b;
    color: white;
}

.relax-modal-close {
    width: 100%;
    padding: 12px;
    border: none;
    background: #f0f0f0;
    border-radius: 10px;
    color: #666;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.relax-modal-close:hover {
    background: #e0e0e0;
}

/* Hover Tilt for Desktop */
@media (hover: hover) {
    .relax-card-container:hover .relax-card:not(.flipped) {
        transform: translateY(-12px) rotateY(8deg) rotateX(-5deg);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .relax-header h1 {
        font-size: 28px;
    }

    .relax-header p {
        font-size: 14px;
    }

    .relax-btn-wrapper button#relaxShowBtn {
        padding: 11px 25px;
        font-size: 14px;
    }

    .relax-cta-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .relax-card-container {
        width: 350px;
        height: 220px;
    }

    .relax-expiry-ribbon-text {
        font-size: 16px;
    }

    .relax-modal {
        padding: 25px;
    }

    .relax-modal h2 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .relax-wrapper {
        padding: 12px;
    }

    .relax-header {
        margin-bottom: 12px;
    }

    .relax-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .relax-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .relax-btn-wrapper {
        margin: 10px 0;
        gap: 6px;
    }

    .relax-btn-wrapper button#relaxShowBtn {
        padding: 10px 22px;
        font-size: 13px;
    }

    .relax-cta-btn {
        padding: 12px 26px;
        font-size: 14px;
    }

    .relax-expired-btn {
        padding: 8px 20px;
        font-size: 11px;
    }

    .relax-timer {
        font-size: 14px;
        margin-top: 6px;
    }

    .relax-card-wrapper.show {
        margin: 12px 0;
        max-height: 500px;
    }

    .relax-card-container {
        width: 280px;
        height: 175px;
    }

    .relax-card-face {
        border-radius: 18px;
    }

    .relax-expiry-ribbon {
        height: 40px;
    }

    .relax-expiry-ribbon-text {
        font-size: 13px;
    }

    .relax-modal {
        padding: 20px;
        max-width: 90%;
    }

    .relax-modal h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .relax-modal p {
        font-size: 13px;
    }

    .relax-contact-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .relax-wrapper {
        padding: 10px;
    }

    .relax-header h1 {
        font-size: 20px;
    }

    .relax-header p {
        font-size: 12px;
    }

    .relax-btn-wrapper button#relaxShowBtn {
        padding: 9px 20px;
        font-size: 12px;
    }

    .relax-cta-btn {
        padding: 11px 24px;
        font-size: 13px;
    }

    .relax-card-container {
        width: 260px;
        height: 163px;
    }
}

/* Registration Modal Extra Styles */
.relax-form-modal {
    max-width: 450px !important;
}

.relax-form-group {
    margin-bottom: 15px;
    text-align: right;
}

.relax-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.relax-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.relax-form-group input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.relax-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.relax-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

.relax-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.relax-form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    text-align: center;
    line-height: 1.5;
}

.relax-form-message.error {
    background: #ffecec;
    color: #ff4d4d;
    border: 1px solid #ffcccc;
    display: block;
}

.relax-form-message.success {
    background: #eaffee;
    color: #28a745;
    border: 1px solid #ccffdd;
    display: block;
}

.relax-form-message.pending {
    background: #fff8e1;
    color: #f59e0b;
    border: 1px solid #ffeeba;
    display: block;
}
