/* =============================================================================
   DC Delivery Checker — Stylesheet
   Matches Figma design: Kona Cleaners – Pickup & Delivery widget
   ============================================================================= */
/* @import url('https://fonts.cdnfonts.com/css/arial'); */
/* ── Utility ──────────────────────────────────────────────────────────────── */
.dc-hidden {
    display: none !important;
}

/* ── Widget container ─────────────────────────────────────────────────────── */
.dc-delivery-checker {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    max-width: 580px;
    margin: 0 auto;
    padding: 0;
}

.dc-delivery-checker *,
.dc-delivery-checker *::before,
.dc-delivery-checker *::after {
    box-sizing: inherit;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.dc-form-wrap {
    background: #ffffff;
    border: 1px solid #D4D4E4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: border-color 0.25s ease;
}

/* State-specific card borders (all 1px) */
.dc-form-wrap.dc-state--success {
    border-color: #3AB54A;
}

.dc-form-wrap.dc-state--error {
    border-color: #D93030;
}

.dc-form-wrap.dc-state--warning {
    border-color: #E8A002;
}

/* ── Form top section ─────────────────────────────────────────────────────── */
.dc-form-top {
    padding: 28px 32px 0;
}

/* ── Label ────────────────────────────────────────────────────────────────── */
.dc-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #532480;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* ── Hint ─────────────────────────────────────────────────────────────────── */
.dc-hint {
    font-size: 13px;
    color: #7C5CBF;
    margin: 8px 0 20px;
    line-height: 1.4;
}

/* ── Validation error ─────────────────────────────────────────────────────── */
.dc-validation-error {
    font-size: 13px;
    color: #D93030;
    margin: -12px 0 16px;
    line-height: 1.4;
}

/* ── Input row ────────────────────────────────────────────────────────────── */
.dc-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Address input ────────────────────────────────────────────────────────── */
.dc-address-input {
    flex: 1 1 200px;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    font-size: 15px;
    color: #374151;
    background: #FAFAFA;
    border: 1px solid #D4D4E4 !important;
    border-radius: 7px !important;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    max-height: 56px;
}

.dc-address-input:focus {
    border-color: #532480;
    box-shadow: 0 0 0 3px rgba(83, 36, 128, 0.1);
}

.dc-address-input::placeholder {
    color: #9CA3AF;
}

/* Input state-specific border + bg */
.dc-form-wrap.dc-state--success .dc-address-input {
    border-color: #3AB54A;
    background: #F0FAF2;
}

.dc-form-wrap.dc-state--error .dc-address-input {
    border-color: #D93030;
    background: #FFF4F4;
}

.dc-form-wrap.dc-state--warning .dc-address-input {
    border-color: #E8A002;
    background: #FFFBF0;
}

/* ── Buttons base ─────────────────────────────────────────────────────────── */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 7px !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    
}

.dc-btn:active {
    transform: translateY(1px);
}

/* Small buttons (in result panel) */
.dc-btn-sm {
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
}

/* Primary – "Check Availability" */
.dc-btn-primary {
    background: #532480;
    color: #ffffff;
    border-radius: 7px;
}

.dc-btn-primary:hover:not(:disabled) {
    background: #3f1a63;
    box-shadow: 0 4px 12px rgba(83, 36, 128, 0.3);
}

.dc-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success – "Create Account", "Find Nearest Store" */
.dc-btn-success {
    color: #FAFAFA;
    font-family: Arial;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    background: #38AD25;
    color: #ffffff;
    text-decoration: none !important;
}

.dc-btn-success:hover {
    background: #2d8f1d;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(56, 173, 37, 0.3);
}

/* Outline – "Learn More" */
.dc-btn-outline {
    color: #390A51;
    font-family: Arial;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    background: #ffffff;
    border: 1px solid #D4D4E4;
    text-decoration: none !important;
}

.dc-btn-outline:hover {
    background: #F9FAFB;
    color: #374151;
    text-decoration: none;
}

/* Warning – "Try Again" */
.dc-btn-warning {
    background: #E8A002;
    color: #ffffff;
}

.dc-btn-warning:hover {
    background: #c98a00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(232, 160, 2, 0.3);
}

/* ── Spinner (in Check button) ────────────────────────────────────────────── */
.dc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dc-spin 0.7s linear infinite;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.dc-divider {
    border: none;
    border-top: 1px solid #D4D4E4;
    margin: 0;
    transition: border-color 0.25s ease;
}

.dc-form-wrap.dc-state--success .dc-divider {
    border-color: #3AB54A;
}

.dc-form-wrap.dc-state--error .dc-divider {
    border-color: #D93030;
}

.dc-form-wrap.dc-state--warning .dc-divider {
    border-color: #E8A002;
}

/* ── Result panel ─────────────────────────────────────────────────────────── */
.dc-result {
    padding: 28px 32px;
    text-align: center;
    animation: dc-fade-in 0.3s ease;
}

/* Tinted backgrounds per state */
.dc-form-wrap.dc-state--success .dc-result {
    background: #F0FAF2;
}

.dc-form-wrap.dc-state--error .dc-result {
    background: #FFF4F4;
}

.dc-form-wrap.dc-state--warning .dc-result {
    background: #FFFBF0;
}

@keyframes dc-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* ── Icon boxes ───────────────────────────────────────────────────────────── */
.dc-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

/* Loading: #532480 at 8% opacity */
.dc-icon-box--loading {
    background: rgba(83, 36, 128, 0.08);
}

/* Success: solid green */
.dc-icon-box--success {
    background: #38AD25;
}

/* Error: light pinkish-red */
.dc-icon-box--error {
    background: #EFDBDB;
}

/* Warning: light amber */
.dc-icon-box--warning {
    background: #F2E6C5;
}

/* Loading icon spin animation */
.dc-loading-icon {
    animation: dc-spin 2.5s linear infinite;
    display: block;
    width: 34px;
    height: 34px;
}

@keyframes dc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── State text ───────────────────────────────────────────────────────────── */
.dc-state-title {
    color: #390A51;
    text-align: center;
    font-family: Arial;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0 0 8px;
    line-height: 1.4;
}

.dc-state-sub {
    color: #390A51;
    text-align: center;
    font-family: 'Arial';
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── Button row ───────────────────────────────────────────────────────────── */
.dc-btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Mobile adjustments ───────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .dc-form-top {
        padding: 20px 20px 0;
    }

    .dc-result {
        padding: 24px 20px;
    }

    .dc-input-row {
        flex-direction: column;
    }

    .dc-btn-primary {
        width: 100%;
    }

    .dc-btn-row {
        flex-direction: column;
        align-items: center;
    }

    .dc-btn-sm {
        width: 100%;
    }
}

/* ── Google Places autocomplete dropdown ─────────────────────────────────── */
.pac-container {
    border-radius: 7px;
    border: 1px solid #D4D4E4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: Arial, sans-serif;
    margin-top: 4px;
}

.pac-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
    background: #F5F3FF;
}

.pac-item-query {
    font-size: 14px;
    color: #374151;
}