.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 100%;
    padding: 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.icon-section {
    flex-shrink: 0;
    position: absolute;
    top: 30%;
    left: -40px;
    z-index: 1000;
}

@media (max-width: 800px) {
    .icon-section {
        top: -40px;
        right: 40%;
        left: auto;
    }
}

.email-icon {
    width: 80px;
    height: 80px;
    background: #2956e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(77, 184, 232, 0.3);
}

.email-icon svg {
    width: 45px;
    height: 45px;
    fill: white;
}

.content-section {
    flex: 1;
}

.subtitle {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.info {
    color: #999;
    font-size: 0.8em;
    margin-bottom: 12px;
    line-height: 1.6;
    font-style: italic;
}

.disclaimer {
    display: flex;
    flex-direction: column;
    gap:10px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form.hidden {
    display: none;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-group {
    position: relative;
    flex: 1;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #2956e3;
    box-shadow: 0 0 0 2px rgba(77, 184, 232, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: #ccc;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2956e3;
}

.checkbox-label {
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
}

.success-message {
    display: none;
    background: #c6f6d5;
    color: #2f855a;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.error-message {
    display: none;
    background: #FFB8B8;
    color: #D70040;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
        flex-direction: column;
        align-items: center;
        max-height: 90vh;
        overflow-y: auto;
    }

    .close-btn {
        top: 10px;
        right: 10px;
    }

    .icon-section {
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .input-row {
        flex-direction: column;
    }

    .bottom-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
