/* Netivia - Demande de devis - Styles */

.netivia-devis-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.netivia-devis-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.netivia-devis-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.4;
}

.netivia-step {
    display: none;
}

.netivia-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

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

.netivia-form {
    width: 100%;
}

.netivia-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.netivia-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.netivia-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.netivia-sublabel {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.netivia-form input[type="text"],
.netivia-form input[type="email"],
.netivia-form input[type="tel"],
.netivia-form input[type="url"],
.netivia-form select {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    box-sizing: border-box;
}

.netivia-form input[type="text"]:focus,
.netivia-form input[type="email"]:focus,
.netivia-form input[type="tel"]:focus,
.netivia-form input[type="url"]:focus,
.netivia-form select:focus {
    outline: none;
    border-color: #0855FE;
    box-shadow: 0 0 0 3px rgba(8, 85, 254, 0.1);
}

.netivia-form input::placeholder {
    color: #999999;
}

.netivia-form select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.netivia-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.netivia-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 24px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    flex: 1;
    justify-content: center;
}

.netivia-radio:hover {
    border-color: #0855FE;
    background: rgba(8, 85, 254, 0.03);
}

.netivia-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0855FE;
}

.netivia-radio input[type="radio"]:checked + span {
    color: #0855FE;
    font-weight: 600;
}

.netivia-radio span {
    font-size: 16px;
    color: #000000;
    transition: all 0.3s ease;
}

.netivia-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #0855FE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    font-family: inherit;
}

.netivia-btn:hover {
    background: #0644d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 85, 254, 0.3);
}

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

.netivia-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.netivia-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

.netivia-success h3 {
    font-size: 32px;
    color: #0855FE;
    margin-bottom: 20px;
    font-weight: 600;
}

.netivia-success p {
    font-size: 18px;
    color: #333333;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .netivia-devis-wrapper {
        padding: 30px 20px;
    }
    
    .netivia-devis-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .netivia-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .netivia-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .netivia-form input[type="text"],
    .netivia-form input[type="email"],
    .netivia-form input[type="tel"],
    .netivia-form input[type="url"],
    .netivia-form select {
        padding: 13px 15px;
        font-size: 15px;
    }
    
    .netivia-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* Messages d'erreur */
.netivia-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.netivia-form-group.error input,
.netivia-form-group.error select {
    border-color: #dc3545;
}

.netivia-form-group.error .netivia-error {
    display: block;
}

/* Loader */
.netivia-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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