/* Standalone Estimation Page Styles */
:root {
    --primary: #0ca6e9;
    --secondary: #0f172a;
    --accent-red: #e74c3c;
    --accent-red-hover: #c0392b;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-alt);
    color: var(--text-main);
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.page-wrapper::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-image: url('provapeurlogononumber.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    /* Extremely subtle */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    /* Subtle 3D effect even on watermark */
    z-index: -1;
    pointer-events: none;
}


.estimation-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    max-width: 600px;
    width: 100%;
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    /* Deep 3D relief shadow */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    /* Sub-glow */
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    justify-content: space-between;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: var(--accent-red);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

.step-circle {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.step-circle.active {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.step-circle.completed {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-form {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    min-width: 180px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

.btn-next,
.btn-submit {
    background-color: var(--accent-red);
    color: var(--white);
    font-weight: 700;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.25);
}

.btn-prev {
    background-color: #f1f5f9;
    color: var(--secondary);
    font-weight: 600;
}

.btn-prev:hover {
    background-color: #e2e8f0;
}

.page-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-footer a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 700;
}

.form-success {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    display: block;
}

.form-success h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-form {
        width: 100%;
        min-width: unset;
    }
}