* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel Styles */
.left-panel {
    flex: 1;
    background-color: #F5F0EA; /* Pale background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.promo-content {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 226px; /* 8cm converted to px */
}

.promo-image {
    max-width: 75%;
    width: auto;
    height: auto;
    margin-bottom: 2rem;
    display: block;
}

.signup-form {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
}

.signup-form input,
.email-input {
    flex: 1;
    padding: 1rem;
    background-color: white;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.signup-form input::placeholder {
    color: #999;
}

.signup-form input:focus {
    border-color: #597E5D;
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: #597E5D; /* Dark green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #4a6a4e;
}

.hidden-form-container {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Right Panel Styles */
.right-panel {
    flex: 1;
    background-color: #F5F0EA; /* Pale background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: visible;
    min-width: 0;
}

.phone-image {
    max-width: 35%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-left: -170px; /* -6cm converted to px */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .right-panel {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .promo-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .promo-image {
        max-width: 90%;
    }
    
    .phone-image {
        margin-left: 0;
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .left-panel {
        padding: 1rem;
    }
    
    .right-panel {
        padding: 1rem;
    }
    
    .promo-content {
        max-width: 100%;
    }
    
    .promo-image {
        max-width: 95%;
        margin-bottom: 1.5rem;
    }
    
    .signup-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .phone-image {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 0.75rem;
    }
    
    .right-panel {
        padding: 0.75rem;
    }
    
    .promo-image {
        max-width: 100%;
    }
    
    .phone-image {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .signup-form input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

