/* Estimation Page Specific Styles */

/* Hide mobile logo on desktop */
.nav-logo-mobile {
    display: none;
}

/* Apply heading font to all heading elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Update color variables for estimation page */
:root {
    --primary-color: #120750;
    --primary-dark: #0E0638;
    --accent-color: #1A0A6B;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --text-dark: #1f2937;
    --white: #ffffff;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Hero Section */
.estimation-hero {
    position: relative;
    height: calc(50vh + 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.estimation-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.estimation-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.estimation-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estimation-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.estimation-hero .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estimation-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 7, 80, 0.35) 0%, rgba(26, 10, 107, 0.35) 100%);
    z-index: 1;
}

.estimation-hero .hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.estimation-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.estimation-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Estimation Section */
.estimation-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.estimation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.estimation-info h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-feature h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Estimation Form */
.estimation-form-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.estimation-form {
    padding: 2.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

.form-step h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked ~ .option-content {
    color: var(--primary-color);
    font-weight: 500;
}

.radio-option input[type="radio"]:checked {
    /* This will trigger the checked state styling */
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(107, 70, 193, 0.05);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
    transform: translateY(-1px);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.option-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.radio-option:has(input[type="radio"]:checked) .option-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Radio options grid */
.radio-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Checkbox styles for radio-option design */
.radio-option input[type="checkbox"] {
    display: none;
}

.radio-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-color);
    background: rgba(107, 70, 193, 0.05);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
    transform: translateY(-1px);
}

.radio-option:has(input[type="checkbox"]:checked) .option-content {
    color: var(--primary-color);
    font-weight: 500;
}

.radio-option:has(input[type="checkbox"]:checked) .option-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Checkbox Options */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    transform: translate(-50%, -50%);
}

/* Optional Badge */
.optional-badge {
    background: var(--gray-100);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.step-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Property-specific forms */
.property-form {
    transition: all 0.3s ease;
}

.property-form.active {
    display: block !important;
}

/* Form Navigation */
.form-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.form-navigation.last-step {
    margin-top: 0;
    padding-top: 0;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.form-navigation button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: 2px solid #9ca3af;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #d1d5db;
    border-color: #6b7280;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    gap: 1rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.progress-step.active {
    background: var(--primary-color);
    color: var(--white);
}

.progress-step.completed {
    background: var(--accent-color);
    color: var(--white);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: var(--gray-200);
    transform: translateY(-50%);
}

.progress-step.completed:not(:last-child)::after {
    background: var(--accent-color);
}

/* Results Section */
.estimation-results {
    padding: 6rem 0;
    background: var(--white);
}

.results-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.results-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-card.main-result {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
}

.amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}

.result-label {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-range {
    font-size: 1rem;
    opacity: 0.8;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.result-info h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-info p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.results-disclaimer {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.results-disclaimer p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.results-disclaimer i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .estimation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .estimation-form-container {
        position: static;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .result-card.main-result {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .estimation-hero {
        height: 48vh; /* Augmenté de 20% (40vh * 1.2) */
    }
    
    .estimation-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card.main-result {
        grid-column: span 1;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .estimation-form {
        padding: 1rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .option-content {
        font-size: 0.9rem;
    }
    
    .radio-options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .results-actions .btn {
        width: 100%;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

.success-checkmark i {
    color: var(--white);
    font-size: 2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile centering fixes */
@media (max-width: 768px) {
    /* Fix timeline numbers centering */
    .timeline-number {
        margin: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix service titles centering */
    .details-content h2 {
        text-align: center;
    }
    
    /* Fix button widths */
    .btn {
        width: auto !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto !important;
    }
    
    /* Center all headings on mobile */
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
    }
    
    /* Center paragraphs on mobile */
    p {
        text-align: center;
    }
    
    /* Center lists on mobile */
    ul, ol {
        text-align: center;
    }
    
    /* Center form elements on mobile */
    .form-group {
        text-align: center;
    }
    
    .form-group label {
        text-align: center;
        display: block;
    }
    
    /* Center timeline content */
    .timeline-content {
        text-align: center;
    }
    
    /* Center service items */
    .service-item {
        text-align: center;
    }
    
    .service-item-content {
        text-align: center;
    }
    
    /* Decrease tag size by 10% from previous 20% increase */
    .property-tag {
        font-size: 0.864rem !important; /* 0.96rem * 0.9 = 0.864rem */
        padding: 0.54rem 0.72rem !important; /* 0.6rem 0.8rem * 0.9 */
        gap: 0.54rem !important; /* 0.6rem * 0.9 */
    }
    
    .property-tags {
        gap: 0.54rem !important; /* 0.6rem * 0.9 */
    }
    
    /* Center property card content */
    .property-card {
        text-align: center;
    }
    
    .property-card .property-title,
    .property-card .property-location,
    .property-card .property-price {
        text-align: center;
    }
    
    .property-tags {
        justify-content: center;
    }
    
    /* Center testimonial card content */
    .testimonial-card {
        text-align: center;
    }
    
    .testimonial-card .testimonial-text,
    .testimonial-card .testimonial-author,
    .testimonial-card .testimonial-role {
        text-align: center;
    }
    
    .testimonial-card .stars {
        justify-content: center;
    }
    
    /* Center contact section elements */
    .contact-section {
        text-align: center;
    }
    
    .contact-section .contact-title,
    .contact-section .contact-subtitle,
    .contact-section .contact-info,
    .contact-section .contact-form {
        text-align: center;
    }
    
    .contact-section .form-group {
        text-align: center;
    }
    
    .contact-section .form-group input,
    .contact-section .form-group textarea,
    .contact-section .form-group select {
        text-align: center;
    }
    
    /* Center property location specifically */
    .property-location {
        text-align: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Center testimonial stars on mobile only + add space below */
    .stars {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 20px auto !important;
        text-align: center !important;
        width: 100% !important;
        gap: 0.25rem !important;
    }
    
    .testimonial-stars {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 20px auto !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .testimonial-stars .stars {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.25rem !important;
        margin: 0 auto 20px auto !important;
        text-align: center !important;
    }
    
    /* Force center all star containers on mobile */
    .testimonial-content .stars,
    .testimonial-card .stars,
    .testimonial-item .stars {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 20px auto !important;
        text-align: center !important;
        width: 100% !important;
        gap: 0.25rem !important;
    }
    
    /* Force center star icons on mobile */
    .stars i {
        display: inline-block !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Reorganize contact section - icons on one line, text below */
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-info .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info .contact-item .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    .contact-info .contact-item .contact-text {
        text-align: center;
    }
    
    /* Social media icons in one line */
    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
}
/* Mobile centering fixes - Sat Oct 18 00:09:22 CEST 2025 */
