/* frontend.css - Fixed for all input types */
.devis-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Two columns layout for Nom and Prénom */
.form-row.two-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row.two-columns .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

/* Input Fields - Fix for all input types including text, email, tel */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    color: #1e293b;
}

/* Placeholder styling for all input types */
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Focus state - subtle gold border */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c4a35a;
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

/* Select dropdown custom styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

/* Textarea specific */
.form-group textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 32px;
}

.btn-submit {
    background-color: #c4a35a;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 240px;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background-color: #b08d4b;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
}

.form-message.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.devis-form-container .two-columns {
    padding-bottom: 20px;    
}

/* Required field styling */
.form-group input[required],
.form-group select[required] {
    position: relative;
}

.form-group select:invalid {
    color: #94a3b8;
}

.form-group select option:first-child {
    color: #94a3b8;
}

.form-group select option:not(:first-child) {
    color: #1e293b;
}

/* Invalid state styling */
/* .form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
    border-color: #ef4444;
} */

.form-group input:invalid:focus:not(:placeholder-shown),
.form-group select:invalid:focus {
    border-color: #c4a35a;
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .devis-form-container {
        padding: 16px;
    }
    
    .form-row.two-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
    }
}