/**
 * Styles du formulaire d'estimation
 *
 * @package EstimationTarifTraduction
 * @since 1.0.0
 */

.ett-form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.ett-form-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 25px 0;
    text-align: center;
}

.ett-form-group {
    margin-bottom: 20px;
}

.ett-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.ett-required {
    color: #d63384;
}

.ett-select,
.ett-input {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fff;
}

.ett-select:focus,
.ett-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ett-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Upload zone */
.ett-upload-area {
    position: relative;
    margin-bottom: 10px;
}

.ett-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ett-file-label {
    display: block;
    padding: 30px 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.ett-file-label:hover {
    border-color: #0066cc;
    background-color: #f8f9fa;
}

.ett-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.ett-upload-text {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.ett-upload-hint {
    display: block;
    font-size: 13px;
    color: #666;
}

.ett-file-name {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

/* Séparateur OR */
.ett-or-separator {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.ett-or-separator span {
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.ett-or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

/* Checkbox RGPD */
.ett-checkbox-group {
    margin: 25px 0;
}

.ett-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.ett-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.ett-checkbox-label a {
    color: #0066cc;
    text-decoration: underline;
}

/* Bouton */
.ett-form-actions {
    text-align: center;
    margin-top: 30px;
}

.ett-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
}

.ett-button:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    color: #ffffff;
}

.ett-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ett-button-loader {
    font-size: 20px;
}

/* Messages */
.ett-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 15px;
}

.ett-messages.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ett-messages.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .ett-form-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .ett-form-title {
        font-size: 20px;
    }
    
    .ett-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .ett-select,
    .ett-input {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .ett-upload-icon {
        font-size: 36px;
    }
    
    .ett-upload-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ett-form-group {
        margin-bottom: 15px;
    }
    
    .ett-file-label {
        padding: 20px 15px;
    }
    
    .ett-checkbox-label {
        font-size: 13px;
    }
}
