/* Strategy Call Modal Styles - Apple Design */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.modal-header {
    padding: 48px 48px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.modal-header p {
    font-size: 17px;
    color: #86868b;
    font-weight: 400;
    line-height: 1.5;
}

.modal-form {
    padding: 32px 48px 48px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 17px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1d1d1f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071E3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #86868b;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.form-actions .btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0071E3;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0077ED;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: #86868b;
    margin-top: 20px;
    margin-bottom: 0;
    font-weight: 400;
}

.modal-success {
    padding: 80px 48px;
    text-align: center;
}

.success-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #0071E3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.success-icon-large svg {
    width: 32px;
    height: 32px;
}

.modal-success h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.modal-success p {
    font-size: 17px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modal-success .btn {
    min-width: 200px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
}

/* Loading State */
.modal-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.modal-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #0071E3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        border-radius: 18px;
        max-height: 95vh;
        margin: 0 12px;
    }

    .modal-header {
        padding: 32px 24px 20px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-header p {
        font-size: 15px;
    }

    .modal-form {
        padding: 24px;
    }

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

    .form-actions {
        flex-direction: column-reverse;
    }

    .modal-success {
        padding: 60px 24px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}
