/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #000;
    line-height: 1.6;
}

/* Background with hair image - slim center with pink sides (Desktop only) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
        url('test1.jpg');
    background-size: 60% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    clip-path: inset(0 20% 0 20%);
}

/* Pink side backgrounds (Desktop only) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, 
            #e1b5b9 0%, 
            #e1b5b9 20%, 
            transparent 20%, 
            transparent 80%, 
            #e1b5b9 80%, 
            #e1b5b9 100%
        );
    z-index: -2;
}

/* Main Container */
.main-content {
    background: white;
    margin: 40px 20px 20px;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* Content Wrapper - Desktop Layout */
.content-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile Layout - White box centered with substantial space above/below */
@media (max-width: 768px) {
    body {
        background-image: url('IMG_8918.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background: url('IMG_8918.jpeg');
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .main-content {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 30px 0;
        background: transparent;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .content-wrapper {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0;
        padding: 12px 15px;
        max-width: 100%;
        width: 100%;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        text-align: center;
        position: relative;
        margin: 0;
    }
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-number {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 5px;
}

.time-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
}

.time-separator {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 5px;
}

/* Call to Action Text */
.cta-text {
    font-size: 14px;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Subscription Form */
.subscription-form {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background: white;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #000;
}

.form-input::placeholder {
    color: #999;
}

/* Phone Input Container */
.phone-input-container {
    position: relative;
    margin-bottom: 15px;
}

/* Subscribe Button */
.subscribe-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background: #333;
}

/* Disclaimer */
.disclaimer {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

.link {
    color: #0066cc;
    text-decoration: underline;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Form Messages */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Desktop Layout Adjustments */
@media (min-width: 768px) {
    .main-content {
        max-width: 500px;
        margin: 60px auto 30px;
    }
    
    .brand-logo img {
        max-width: 120px;
    }
    
    .time-number {
        font-size: 36px;
    }
}


/* Additional Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .brand-logo {
        margin-bottom: 6px;
    }
    
    .brand-logo img {
        max-width: 80px;
        height: auto;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
    
    .countdown-container {
        margin-bottom: 6px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 45px;
    }
    
    .time-number {
        font-size: 1.4rem;
        margin-bottom: 2px;
        font-family: 'Inter', monospace;
    }
    
    .time-label {
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .time-separator {
        font-size: 1.4rem;
        margin-bottom: 6px;
        font-family: 'Inter', monospace;
    }
    
    .cta-text {
        font-size: 0.6rem;
        color: #333;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .subscription-form {
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 6px 10px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .phone-input-container {
        margin-bottom: 4px;
    }
    
    .subscribe-btn {
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .disclaimer {
        font-size: 0.6rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-icon img {
        width: 16px;
        height: 16px;
        filter: grayscale(100%);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px 20px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-number {
        font-size: 1.75rem;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .subscribe-btn {
        padding: 14px 16px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to main elements */
.brand-logo,
.countdown-container,
.cta-text,
.subscription-form,
.disclaimer,
.social-icons {
    animation: fadeInUp 0.8s ease-out forwards;
}

.brand-logo {
    animation-delay: 0.1s;
}

.countdown-container {
    animation-delay: 0.2s;
}

.cta-text {
    animation-delay: 0.3s;
}

.subscription-form {
    animation-delay: 0.4s;
}

.disclaimer {
    animation-delay: 0.5s;
}

.social-icons {
    animation-delay: 0.6s;
}
