/* Custom CSS extending Tailwind for SiteQuote AI */

/* Form input baseline */
.form-input {
    width: 100%;
    background: #0E1116;
    border: 1px solid rgba(232, 229, 224, 0.15);
    color: #F4F1EC;
    padding: 0.85rem 1rem;
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 1rem;
    transition: all 0.15s ease;
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: #F5B70A;
    box-shadow: 0 0 0 2px rgba(245, 183, 10, 0.15);
}
.form-input::placeholder {
    color: rgba(232, 229, 224, 0.35);
}
select.form-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F5B70A'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Pill-style radio/checkbox */
.form-pill {
    position: relative;
    display: block;
    cursor: pointer;
}
.form-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.form-pill > span {
    display: block;
    padding: 0.85rem 1rem;
    background: #0E1116;
    border: 1px solid rgba(232, 229, 224, 0.15);
    text-align: center;
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-weight: 500;
    color: #F4F1EC;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 0.95rem;
}
.form-pill:hover > span {
    border-color: rgba(245, 183, 10, 0.5);
    color: #F5B70A;
}
.form-pill input:checked + span {
    background: #F5B70A;
    border-color: #F5B70A;
    color: #0E1116;
    font-weight: 700;
}

/* Smooth fade between form steps */
.form-step {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Result card styling */
.result-card {
    background: linear-gradient(135deg, #1A1F2A 0%, #0E1116 100%);
    border: 2px solid #F5B70A;
    padding: 2rem;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #F5B70A;
    color: #0E1116;
}

/* Ensure details summary doesn't show default arrow */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Loading indicator */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(245, 183, 10, 0.25);
    border-top-color: #F5B70A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
