/* Homepage ZIP Widget Styles */
/* File: assets/homepage-widget.css */

/* Container for the homepage ZIP widget */
#dpe-homepage-zip-widget.dpe-widget-container {
    max-width: 500px !important;
    margin: 20px 0 !important;
    padding: 10px !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    text-align: center !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80px !important;
}

/* Form section */
.dpe-zip-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
}

/* Subtext below the form */
.dpe-widget-subtext {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.4;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

/* ZIP input field */
.dpe-zip-field-homepage {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    font-size: 1em;
    font-weight: 500;
    text-align: left;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background: #ffffff;
    color: #2d3748;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.dpe-zip-field-homepage:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.dpe-zip-field-homepage::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* CTA Button */
.dpe-btn-homepage {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.dpe-btn-homepage:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.dpe-btn-homepage:active {
    transform: translateY(0);
}

.dpe-btn-homepage:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

/* Result messages */
.dpe-zip-result {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.dpe-zip-result.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 8px 12px;
}

.dpe-zip-result.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 8px 12px;
}

.dpe-zip-result.loading {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    padding: 8px 12px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    #dpe-homepage-zip-widget {
        margin: 15px auto;
        padding: 15px;
    }
    
    .dpe-zip-form {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        max-width: 100%;
    }
    
    .dpe-zip-field-homepage {
        flex: 1;
        min-width: 120px;
        max-width: none;
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .dpe-btn-homepage {
        padding: 10px 16px;
        font-size: 0.9em;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .dpe-widget-subtext {
        text-align: left;
        font-size: 0.85em;
    }
}

/* Focus states for accessibility */
.dpe-btn-homepage:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}