/* ============================================================
   CREATIVE RIGHT-SIDE FREE CALLBACK FORM STYLES
   Scope: .quote-two-col-layout, .quote-main-col, .quote-sidebar-col, .callback-card
   ============================================================ */

/* Two-column layout container for Interstate Quote page */
.quote-main-container {
    max-width: 1360px !important;
    margin: 0 auto;
    width: 100%;
}

.quote-two-col-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 32px;
    align-items: start;
}

.quote-main-col {
    min-width: 0;
    width: 100%;
}

.quote-sidebar-col {
    position: sticky;
    top: 96px;
    min-width: 0;
    width: 100%;
    z-index: 20;
}

/* Tablet & Mobile responsive stacking */
@media (max-width: 1120px) {
    .quote-two-col-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .quote-sidebar-col {
        position: static;
        top: auto;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .quote-sidebar-col {
        max-width: 100%;
    }
}

/* ------------------------------------------------------------
   Callback Form Card
   ------------------------------------------------------------ */
.callback-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #fed7aa;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(254, 215, 170, 0.55), 0 0 18px -4px rgba(234, 88, 12, 0.12);
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    animation: callbackSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, callbackGlowRing 3.5s ease-in-out infinite 0.6s;
}

@keyframes callbackGlowRing {
    0%, 100% {
        box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 0 0 1.5px rgba(254, 215, 170, 0.55), 0 0 18px -4px rgba(234, 88, 12, 0.12);
    }
    50% {
        box-shadow: 0 20px 44px -8px rgba(234, 88, 12, 0.22), 0 0 0 2px #ea580c, 0 0 28px 2px rgba(249, 115, 22, 0.28);
    }
}

@keyframes flashHighlightAnim {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.8); }
    40% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(234, 88, 12, 0.35), 0 20px 48px rgba(234, 88, 12, 0.3); }
    100% { transform: scale(1); }
}

.callback-card.flash-highlight {
    animation: flashHighlightAnim 1.2s ease-in-out !important;
    border-color: #ea580c !important;
}

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

@media (prefers-reduced-motion: reduce) {
    .callback-card {
        animation: none;
        transition: none;
    }
}

.callback-card:hover {
    border-color: #ea580c;
    box-shadow: 0 20px 44px -10px rgba(234, 88, 12, 0.25), 0 0 0 2px #ea580c, 0 0 28px rgba(234, 88, 12, 0.2);
    transform: translateY(-2px);
}

/* Decorative subtle top gradient bar with continuous shift */
.callback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ea580c 0%, #f97316 35%, #f59e0b 70%, #ea580c 100%);
    background-size: 200% 100%;
    animation: callbackBarShift 3.5s ease infinite;
}

@keyframes callbackBarShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Elements & Flash Badge */
.callback-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 11px;
    border-radius: 9999px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
    animation: badgeFlashGlow 2.5s ease-in-out infinite;
}

@keyframes badgeFlashGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12); border-color: #fed7aa; }
    50% { box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); border-color: #ea580c; }
}

.callback-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
    animation: callbackPulse 1.8s infinite;
}

@keyframes callbackPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.callback-heading {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

.callback-accent {
    color: #ea580c;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.callback-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Quick Trust Perks strip */
.callback-perks-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 18px;
}

.callback-perk-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

.callback-perk-item i {
    color: #ea580c;
    font-size: 12px;
    flex-shrink: 0;
}

/* Form Groups & Inputs */
.callback-form-group {
    margin-bottom: 14px;
}

.callback-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.callback-label .req {
    color: #ef4444;
}

.callback-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.callback-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.callback-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 40px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.callback-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.callback-input:hover {
    border-color: #cbd5e1;
}

.callback-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
    background: #ffffff;
}

.callback-input:focus + .callback-input-icon,
.callback-input-wrapper:focus-within .callback-input-icon {
    color: #ea580c;
    transform: scale(1.12);
}

/* Submit Button */
.callback-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 18px;
    position: relative;
    overflow: hidden;
}

.callback-submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: btnShimmerSweep 3.2s infinite;
}

@keyframes btnShimmerSweep {
    0% { left: -75%; }
    35%, 100% { left: 140%; }
}

.callback-submit-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45);
}

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

.callback-submit-btn:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

.callback-submit-btn i.fa-phone-volume {
    display: inline-block;
    animation: phoneShake 2.5s infinite;
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
    50% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .callback-submit-btn i.fa-phone-volume,
    .callback-submit-btn::after {
        animation: none;
    }
}

/* Live Move Coordinator Status Bar */
.callback-live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: #475569;
    margin-top: 12px;
    padding: 7px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.live-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: liveDotPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Footer hotline & privacy guarantee */
.callback-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.callback-hotline {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.callback-hotline a {
    color: #ea580c;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.callback-hotline a:hover {
    color: #c2410c;
    text-decoration: underline;
}

.callback-privacy {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Success State Box */
.callback-success-view {
    display: none;
    text-align: center;
    padding: 18px 8px;
    animation: callbackFadeIn 0.4s ease forwards;
}

@keyframes callbackFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.callback-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px auto;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.callback-success-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.callback-success-msg {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 18px;
}

.callback-reset-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.callback-reset-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Alert Error Box */
.callback-alert-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 14px;
    line-height: 1.4;
    text-align: left;
}
