/**
 * Quote Form - Modern Floating Labels
 * 
 * Design moderne avec labels flottants inspiré Material Design
 * 
 * @package Kidzup
 * @version 1.0.0
 */

/* ================================================
   FLOATING LABEL FORM
   ================================================ */

.quote-form {
    margin-top: 1.5rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > input,
.form-floating > textarea {
    width: 100%;
    height: 56px;
    padding: 1.5rem 0.75rem 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.form-floating > textarea {
    height: auto;
    min-height: 120px;
    padding-top: 1.625rem;
    resize: vertical;
}

.form-floating > input:focus,
.form-floating > textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-floating > label {
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    transform: translateY(0) scale(0.85);
    transform-origin: left center;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    background: #fff;
    padding: 0 0.25rem;
    z-index: 2;
    background-color: transparent;
}

.form-floating > textarea ~ label {
    top: 0.5rem;
}

/* Label actif au focus */
.form-floating > input:focus ~ label,
.form-floating > textarea:focus ~ label {
    color: #667eea;
}

/* Astérisque obligatoire */
.form-floating > label .required-mark {
    color: #ef4444;
    margin-left: 2px;
}

/* Checkbox consent */
.consent-checkbox {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-checkbox input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.consent-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.consent-checkbox label {
    display: block;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* Bouton submit */
.btn-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    font-size: 1.125rem;
}

/* Response messages */
.form-response {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-response.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-response.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-response i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Quote info */
.quote-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.quote-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0;
}

.quote-info i {
    color: #667eea;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .form-floating > .form-control,
    .form-floating > .form-select,
    .btn-submit {
        height: 52px;
    }
    
    .form-floating > textarea.form-control {
        min-height: 100px;
    }
}
