/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal-content {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 600px;
    max-width: 90%;
    background: #ffffff;
    padding: 60px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal h2 {
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #000000;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF7107;
    box-shadow: 0 0 0 3px rgba(255, 113, 7, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Custom select styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

/* Submit button */
.modal-content .ctaa-button-submit {
    width: 100%;
    background: #000000;
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.modal-content .ctaa-button-submit:hover {
    background: #FF7107;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 113, 7, 0.3);
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        align-items: center;
        justify-content: center;
        display: none; /* Keep display: none as default */
        background: rgba(0, 0, 0, 0.7);
    }
    
    .modal-content {
        position: relative;
        width: calc(100% - 40px);
        max-width: 400px;
        height: auto;
        max-height: 85vh;
        padding: 30px 20px;
        border-radius: 20px; /* Rounded corners like in screenshot */
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        background: transparent;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-bottom-color: #FF7107;
        box-shadow: none;
    }
    
    .modal-content .ctaa-button-submit {
        margin-top: 25px;
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 25px;
    }
}