/* Premium Advisor Portal Styles - glassmorphic modal & responsive weekly calendar grid */

.advisor-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 45, 33, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advisor-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.advisor-modal {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    box-shadow: 
        0 24px 80px -16px rgba(15, 45, 33, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisor-modal-overlay.open .advisor-modal {
    transform: translateY(0) scale(1);
}

.advisor-modal-header {
    padding: 28px 36px 20px;
    border-bottom: 1px solid rgba(15, 45, 33, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
}

.advisor-modal-header h2 {
    font-family: 'Geist', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0F2D21;
    letter-spacing: -0.02em;
    margin: 0;
}

.advisor-modal-close {
    width: 32px;
    height: 32px;
    background: rgba(15, 45, 33, 0.04);
    border: 1px solid rgba(15, 45, 33, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5C6E64;
    font-size: 16px;
    transition: all 0.2s ease;
}

.advisor-modal-close:hover {
    background: #B8541A;
    color: #FFFEFB;
    border-color: #B8541A;
}

.advisor-modal-progress {
    height: 4px;
    background: rgba(15, 45, 33, 0.05);
    width: 100%;
}

.advisor-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B8541A, #E5C272);
    width: 25%;
    transition: width 0.3s ease;
}

.advisor-modal-body {
    padding: 32px 36px;
    overflow-y: auto;
    flex-grow: 1;
}

.advisor-step {
    display: none;
}

.advisor-step.active {
    display: block;
    animation: advFadeIn 0.4s ease forwards;
}

@keyframes advFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.adv-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F2D21;
    margin-bottom: 6px;
}

.adv-step-desc {
    font-size: 13.5px;
    color: #5C6E64;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Forms styling */
.adv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .adv-form-grid {
        grid-template-columns: 1fr;
    }
}

.adv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adv-field.full-width {
    grid-column: 1 / -1;
}

.adv-field label {
    font-size: 11px;
    font-weight: 700;
    color: #0F2D21;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adv-field input, .adv-field select, .adv-field textarea {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 45, 33, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #0F2D21;
    outline: none;
    transition: all 0.2s ease;
}

.adv-field input:focus, .adv-field select:focus, .adv-field textarea:focus {
    border-color: #B8541A;
    background: #FFFEFB;
    box-shadow: 0 0 0 3px rgba(184, 84, 26, 0.15);
}

/* Weekly calendar grid styling */
.calendar-grid-container {
    margin-top: 12px;
    border: 1px solid rgba(15, 45, 33, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    background: rgba(15, 45, 33, 0.04);
    border-bottom: 1px solid rgba(15, 45, 33, 0.08);
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #0F2D21;
    padding: 10px 0;
}

.calendar-row {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    border-bottom: 1px solid rgba(15, 45, 33, 0.06);
    align-items: center;
}

.calendar-row:last-child {
    border-bottom: none;
}

.calendar-day-label {
    font-weight: 600;
    font-size: 13px;
    color: #0F2D21;
    padding-left: 16px;
}

.calendar-cell {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.calendar-slot-btn {
    width: 90%;
    padding: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(15, 45, 33, 0.15);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    color: #5C6E64;
    transition: all 0.2s ease;
    text-align: center;
}

.calendar-slot-btn:hover {
    border-color: #B8541A;
    color: #B8541A;
    background: rgba(184, 84, 26, 0.05);
}

.calendar-slot-btn.selected {
    border-style: solid;
    border-color: #0F2D21;
    background: #0F2D21;
    color: #FFFEFB;
    box-shadow: 0 4px 10px rgba(15, 45, 33, 0.15);
}

/* Pulsing Verification badge styling */
.verification-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 0;
}

.pulsing-badge {
    width: 80px;
    height: 80px;
    background: rgba(184, 84, 26, 0.1);
    border: 1px solid rgba(184, 84, 26, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8541A;
    position: relative;
    margin-bottom: 24px;
}

.pulsing-badge::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1.5px solid rgba(184, 84, 26, 0.4);
    border-radius: 50%;
    animation: badgePulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.verification-title {
    font-size: 21px;
    font-weight: 700;
    color: #0F2D21;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.verification-status-tag {
    background: #FFF2E6;
    border: 1px solid rgba(184, 84, 26, 0.25);
    color: #B8541A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.verification-desc {
    font-size: 14px;
    color: #5C6E64;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 24px;
}

/* Nav controls */
.advisor-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    border-top: 1px solid rgba(15, 45, 33, 0.06);
    padding-top: 24px;
}

.adv-btn-back {
    background: transparent;
    border: 1px solid rgba(15, 45, 33, 0.15);
    color: #5C6E64;
    padding: 10px 24px;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.adv-btn-back:hover {
    border-color: #0F2D21;
    color: #0F2D21;
}

.adv-btn-next {
    background: #0F2D21;
    border: none;
    color: #FFFEFB;
    padding: 10px 28px;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adv-btn-next:hover {
    background: #B8541A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 84, 26, 0.2);
}

.adv-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.adv-otp-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid rgba(15, 45, 33, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    color: #0F2D21;
    transition: all 0.2s ease;
}

.adv-otp-box:focus {
    border-color: #B8541A;
    box-shadow: 0 0 0 3px rgba(184, 84, 26, 0.15);
    background: #FFFEFB;
}
