/* ==========================================================================
   DocClix Doctor Lead Popup Modal Styles
   ========================================================================== */

.dc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dc-modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.dc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dc-modal-card {
    position: relative;
    z-index: 10;
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 28px 24px;
    animation: dcModalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes dcModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-modal-card {
        animation: none !important;
        transition: none !important;
    }
}

.dc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dc-modal-close:hover,
.dc-modal-close:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
    outline: 2px solid #0D8ABC;
}

.dc-modal-header {
    margin-bottom: 20px;
    text-align: left;
}

.dc-badge-doctor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0D8ABC;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.dc-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.dc-modal-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.dc-lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dc-form-row {
    width: 100%;
}

.dc-form-row.dc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .dc-form-row.dc-two-col {
        grid-template-columns: 1fr;
    }
}

.dc-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.dc-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.dc-form-group label .req {
    color: #ef4444;
}

.dc-form-group label .opt {
    color: #94a3b8;
    font-weight: 400;
}

.dc-form-group input,
.dc-form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.dc-form-group input:focus,
.dc-form-group select:focus {
    border-color: #0D8ABC;
    box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.15);
}

.dc-phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dc-phone-input-wrap:focus-within {
    border-color: #0D8ABC;
    box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.15);
}

.dc-country-code {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    background: #f8fafc;
    color: #475569;
    border-right: 1.5px solid #cbd5e1;
    user-select: none;
}

.dc-phone-input-wrap input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.dc-field-error {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
    min-height: 14px;
}

.dc-btn-submit-lead {
    margin-top: 6px;
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #0D8ABC 0%, #0284c7 100%);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 138, 188, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.dc-btn-submit-lead:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 138, 188, 0.4);
}

.dc-btn-submit-lead:active {
    transform: translateY(0);
}

.dc-btn-submit-lead:focus-visible {
    outline: 3px solid #0284c7;
    outline-offset: 2px;
}

.dc-btn-submit-lead:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.dc-form-privacy {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.dc-form-privacy a {
    color: #0D8ABC;
    text-decoration: underline;
}

/* Success View */
.dc-lead-success {
    text-align: center;
    padding: 24px 12px 12px;
}

.dc-lead-success.hidden {
    display: none !important;
}

.dc-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    animation: dcPopCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dcPopCheck {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.dc-success-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.dc-success-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
}

.dc-btn-secondary {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dc-btn-secondary:hover,
.dc-btn-secondary:focus-visible {
    background: #e2e8f0;
    outline: 2px solid #0D8ABC;
}
