/* Advanced Quote System Form Styles */
.quote-form-container {
    max-width: 24rem; /* Narrower width to match section */
    margin: 0.75rem auto;
    padding: 0.75rem;
    background: linear-gradient(to bottom, #ffffff, #f3f4f6);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quote-form-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem 0.375rem 2rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.form-group i {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.75rem;
}

.form-row {
    display: grid;
    gap: 0.5rem;
}

.submit-btn {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
    transform: translateY(-1px) scale(1.02);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

#form-message {
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
}

#form-message.text-green-600 {
    color: #10b981;
}

#form-message.text-red-600 {
    color: #ef4444;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .quote-form-container {
        max-width: 20rem;
        padding: 0.5rem;
        margin: 0.5rem;
    }

    .quote-form-container h3 {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem 0.3rem 1.75rem;
    }

    .form-group i {
        font-size: 0.7rem;
        left: 0.5rem;
    }

    .submit-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .quote-form-container {
        max-width: 22rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1025px) {
    .quote-form-container {
        max-width: 24rem;
    }

    .quote-form-container:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}