/* Hansen Quote Tool Styles */
#hansen-quote-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
}

#hansen-quote-container * {
    box-sizing: border-box;
}

#hansen-quote-container input,
#hansen-quote-container textarea,
#hansen-quote-container select {
    outline: none !important;
    border-radius: 6px !important;
}

.hq-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 24px;
    color: #fff;
    text-align: center;
}

.hq-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
}

.hq-subtitle {
    font-size: 14px;
    color: #e8a020;
    margin: 0;
}

.hq-steps {
    background: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hq-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
}

.hq-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8a020;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hq-arrow {
    color: #555;
    font-size: 16px;
}

.hq-address-section {
    padding: 20px 24px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.hq-address-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.hq-address-bar {
    display: flex;
    gap: 0;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

#hq-address {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
}

#hq-find-btn {
    padding: 14px 24px;
    background: #e8a020;
    border: none;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#hq-find-btn:hover {
    background: #d4911a;
}

.hq-map-wrapper {
    position: relative;
}

#hq-map {
    width: 100%;
    height: 400px;
    background: #222;
}

.hq-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    text-align: center;
}

.hq-map-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

.hq-map-controls button {
    padding: 8px 12px;
    background: rgba(20,20,20,0.9);
    border: 1px solid #555;
    color: #ccc;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
}

.hq-map-controls button.hq-active {
    border-color: #e8a020;
    color: #e8a020;
}

.hq-toolbar {
    background: #1a1a1a;
    display: flex;
    border-bottom: 1px solid #333;
}

.hq-toolbar button {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-right: 1px solid #2a2a2a;
    text-transform: uppercase;
}

.hq-toolbar button:last-child {
    border-right: none;
}

.hq-toolbar button:hover,
.hq-toolbar button.hq-active {
    background: rgba(232,160,32,0.15);
    color: #e8a020;
}

.hq-stats {
    background: #111;
    display: flex;
    border-bottom: 2px solid #333;
}

.hq-stat {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    border-right: 1px solid #222;
}

.hq-stat:last-child {
    border-right: none;
}

.hq-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #e8a020;
    display: block;
}

.hq-stat-lbl {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
    text-transform: uppercase;
}

.hq-form {
    padding: 24px;
    background: #fff;
}

.hq-form h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.hq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.hq-form input,
.hq-form select,
.hq-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.hq-form input:focus,
.hq-form select:focus,
.hq-form textarea:focus {
    border-color: #e8a020;
}

.hq-form select,
.hq-form textarea {
    margin-bottom: 12px;
}

.hq-form textarea {
    min-height: 80px;
    resize: vertical;
}

.hq-sqft-display {
    background: #fef8ee;
    border: 2px solid #e8a020;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin: 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

#hq-submit {
    width: 100%;
    padding: 16px;
    background: #e8a020;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
}

#hq-submit:hover {
    background: #d4911a;
}

#hq-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#hq-loading {
    text-align: center;
    padding: 16px;
    color: #888;
    font-size: 14px;
}

#hq-success {
    background: #f0faf4;
    border: 2px solid #4caf7d;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}

#hq-success h4 {
    color: #2d7a52;
    margin: 0 0 8px 0;
}

#hq-success p {
    color: #555;
    margin: 0;
}

#hq-error {
    background: #fff5f5;
    border: 2px solid #e05555;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin-top: 12px;
    color: #c00;
}

#hq-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,20,0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #e8a020;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

#hq-hint.show {
    opacity: 1;
}

@media (max-width: 600px) {
    .hq-row {
        grid-template-columns: 1fr;
    }
    
    #hq-map {
        height: 300px;
    }
    
    .hq-steps {
        font-size: 11px;
    }
}
