[hidden] {
    display: none !important;
}

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    overflow-y: auto; 
}

/* Modal container */
.modal {
    background: #F5F6FA;
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    padding: 24px 32px 64px 32px; 
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: row; 
    gap: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-form {
    background: #F5F6FA;
    padding: 20px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    color: rgb(66, 81, 132);
    font-size: 14px;
    line-height: 22px;
}

.modal-form label {
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgb(66, 81, 132);
}

.field-required > label::after {
    content: " *";
    color: #e11d48;
    font-weight: 600;
}

/* Headline: Request a demo */
.modal h2 {
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    color: rgb(66, 81, 132);
    font-size: 24px;
    line-height: 31px;
	text-align: left;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #111827;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Labels */
.modal-form label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgb(66, 81, 132);
    margin-bottom: 6px;
	text-align: left;
}

/* Inputs, selects, textarea */
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgb(66, 81, 132);
    background: #FFFFFF;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #ff7a3d;
    box-shadow: 0 0 0 3px rgba(255,122,61,0.15);
    outline: none;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select dropdowns */
.modal-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: rgb(66, 81, 132);
    background: #FFFFFF;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.modal-form select:focus {
    border-color: #ff7a3d;
    box-shadow: 0 0 0 3px rgba(255,122,61,0.15);
    outline: none;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgb(66, 81, 132);
}

.checkbox-label {
    display: inline-block;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #ff7a3d;
    cursor: pointer;
}

.submit-btn {
    background: #ff7a3d;
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    border-radius: 999px;
    margin-top: 24px;       
    margin-bottom: 34px;    
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Right side content */
.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    color: rgb(66, 81, 132);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    min-width: 200px;
}

/* Responsive adjustments for mobile/tablet */
@media (max-width: 900px) {
    .modal {
        flex-direction: column;       
        padding: 20px 24px 40px 24px; 
        max-height: 90vh;              
    }

    .modal-form {
        padding: 20px 16px;
        overflow-y: auto;             
    }

    .form-grid {
        grid-template-columns: 1fr;   
    }

    .modal h2 {
        font-size: 24px;
        line-height: 31px;
    }
}
