/* STLI Quote Form Styles */

.stli-quote-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.stli-quote-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.stli-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #001E50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Sections */
.stli-form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.stli-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.stli-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003087;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.stli-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #E30613;
    margin-right: 0.75rem;
    border-radius: 2px;
}

/* Form Groups */
.stli-form-group {
    margin-bottom: 1.5rem;
}

.stli-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.stli-required {
    color: #E30613;
    margin-right: 0.25rem;
}

/* Form Inputs */
.stli-input,
.stli-select,
.stli-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.stli-input:focus,
.stli-select:focus,
.stli-textarea:focus {
    outline: none;
    border-color: #003087;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.stli-select {
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.stli-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Rows */
.stli-form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stli-col-6 {
    flex: 1;
}

/* Checkboxes */
.stli-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stli-checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stli-checkbox-label:hover {
    border-color: #003087;
    background: #F9FAFB;
}

.stli-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #003087;
}

.stli-checkbox-text {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #374151;
}

.stli-icon {
    margin-right: 0.5rem;
    font-style: normal;
}

/* Buttons */
.stli-form-actions {
    margin-top: 2rem;
    text-align: center;
}

.stli-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.stli-btn-primary {
    background: #003087;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.stli-btn-primary:hover {
    background: #001E50;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 48, 135, 0.4);
}

.stli-btn-primary:active {
    transform: translateY(0);
}

.stli-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Loader */
.stli-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: stli-spin 0.8s linear infinite;
}

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

/* Messages */
.stli-form-messages {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.stli-form-messages.show {
    display: block;
}

.stli-form-messages.success {
    background: #D1FAE5;
    border: 2px solid #10B981;
    color: #065F46;
}

.stli-form-messages.error {
    background: #FEE2E2;
    border: 2px solid #EF4444;
    color: #991B1B;
}

/* Responsive */
@media (max-width: 768px) {
    .stli-quote-form-container {
        padding: 1.5rem;
    }
    
    .stli-form-title {
        font-size: 1.5rem;
    }
    
    .stli-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stli-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .stli-btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stli-quote-form-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .stli-quote-form-container {
        padding: 1rem;
    }
    
    .stli-form-title {
        font-size: 1.25rem;
    }
    
    .stli-section-title {
        font-size: 1.1rem;
    }
}
