/* =============================================================================
   Indigo Quotes — Frontend CSS
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* === Quote Button === */
.iq-quote-button-wrap {
    margin-top: 16px;
    text-align: center;
}

.iq-quote-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: #4F46E5;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 2px solid #C7D2FE;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    -webkit-font-smoothing: antialiased;
}

.iq-quote-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.iq-quote-btn:hover {
    color: #ffffff;
    border-color: #4F46E5;
    box-shadow: 0 4px 12px rgb(79 70 229 / 0.3);
    transform: translateY(-1px);
}

.iq-quote-btn:hover::before {
    opacity: 1;
}

.iq-quote-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgb(79 70 229 / 0.2);
}

.iq-quote-btn__icon,
.iq-quote-btn__label,
.iq-quote-btn__spinner {
    position: relative;
    z-index: 1;
}

.iq-quote-btn__icon {
    flex-shrink: 0;
}

/* === Loading State === */
.iq-quote-btn.is-loading {
    pointer-events: none;
    color: #818CF8;
    background: #EEF2FF;
    border-color: #C7D2FE;
}

.iq-quote-btn.is-loading::before {
    opacity: 0;
}

.iq-quote-btn.is-loading .iq-quote-btn__icon {
    display: none;
}

.iq-quote-btn__spinner {
    display: none;
}

.iq-quote-btn.is-loading .iq-quote-btn__spinner {
    display: inline-flex;
    animation: iq-spin 1s linear infinite;
}

@keyframes iq-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === Success State === */
.iq-quote-btn.is-success {
    color: #059669;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #6EE7B7;
}

.iq-quote-btn.is-success::before {
    opacity: 0;
}

/* === Error State === */
.iq-quote-btn.is-error {
    color: #DC2626;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-color: #FCA5A5;
}

.iq-quote-btn.is-error::before {
    opacity: 0;
}

/* === Toast Notification === */
.iq-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
    animation: iq-toast-in 0.3s ease-out;
    max-width: 360px;
}

.iq-toast--success {
    background: #059669;
    color: #fff;
}

.iq-toast--error {
    background: #DC2626;
    color: #fff;
}

@keyframes iq-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}