/* Reset and Basic Styles */
*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #3D4255;
    background-color: #f0f2f5;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #242a5e;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container, .inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    width: 150px;
    height: auto;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav ul li a {
    padding: 14px 0;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a.active,
.nav ul li a:hover {
    color: #e31d50;
}

.profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 100;
}

.profile-dropdown ul {
    list-style: none;
    padding: 10px 0;
}

.profile-dropdown ul li {
    padding: 10px 20px;
}

.profile-dropdown ul li:hover {
    background: #f0f2f5;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 24px;
}

/* Banner */
.banner {
    position: relative;
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
    height: 400px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 42, 94, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

.banner p {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
}

.banner-btn {
    background-color: #e31d50;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.banner-btn:hover {
    background-color: #c01a45;
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Form Section */
.form-section {
    background-color: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-card h2 {
    margin-bottom: 40px;
    font-size: 36px;
    color: #242a5e;
    text-align: center;
}

.form-card form {
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group i {
    position: absolute;
    top: 42px;
    left: 15px;
    color: #888;
    font-size: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Add left padding for icons */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="file"] {
    padding-left: 45px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e31d50;
    outline: none;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6%22%20fill%3D%22%23ccc%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

.form-group select option {
    padding: 10px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-navigation .prev-btn,
.form-navigation .next-btn,
.form-navigation .submit-btn,
.btn.reset-btn,
.btn.edit-btn {
    background-color: #e31d50;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-navigation .prev-btn:hover,
.form-navigation .next-btn:hover,
.form-navigation .submit-btn:hover,
.btn.reset-btn:hover,
.btn.edit-btn:hover {
    background-color: #c01a45;
}

/* Validate Address Button */
.validate-btn {
    display: inline-flex;
    align-items: center;
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 10px;
    margin-top : 12px;
    margin-left : 6px;
}

.validate-btn:hover {
    background-color: #218838;
}

.validate-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.validate-btn i {
    font-size: 18px;
}

/* Address Suggestions */
#addressSuggestions {
    margin-top: 20px;
}

#addressSuggestions label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

#addressSelect {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6%22%20fill%3D%22%23ccc%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    margin-bottom: 10px;
    padding-left: 35px;
}

#addressSelect:focus {
    border-color: #e31d50;
    outline: none;
}

#addressSelect option {
    padding: 10px;
}

/* Progress Bar Styles */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.progress-bar .step {
    position: relative;
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    z-index: 1;
}

.progress-bar .step span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    color: #ccc;
    margin-bottom: 10px;
    font-size: 18px;
}

.progress-bar .step p {
    margin: 0;
    font-size: 14px;
}

.progress-bar .step.active span,
.progress-bar .step.completed span {
    border-color: #e31d50;
    background-color: #e31d50;
    color: #fff;
}

.progress-bar .step.active p,
.progress-bar .step.completed p {
    color: #e31d50;
}

.progress-bar .step.completed::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e31d50;
    z-index: -1;
}

/* Form Step Styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Result Card */
.result-card {
    display: none;
    background-color: #fff;
    padding: 60px;
    margin-top: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-card h2 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #242a5e;
    text-align: center;
}

#priceEstimate {
    font-size: 24px;
    font-weight: bold;
    color: #242a5e;
    margin-bottom: 30px;
    text-align: center;
}

#priceEstimate span {
    color: #e31d50;
}

.additional-data h3 {
    margin-top: 30px;
    font-size: 24px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td:first-child {
    font-weight: bold;
    color: #242a5e;
}

/* Image Gallery */
.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.img-gallery img {
    width: calc(33.333% - 10px);
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Result Navigation Buttons */
.result-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 40px 0 20px;
    border-top: 1px solid #eaeaea;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-row div {
    flex: 1;
    min-width: 250px;
}

.footer-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-btn {
    border: 1px solid #242a5e;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #242a5e;
    transition: background-color 0.3s, color 0.3s;
}

.footer-btn img {
    width: 20px;
    height: 20px;
}

.footer-btn:hover {
    background-color: #242a5e;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #eaeaea;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right img {
    width: 100px;
    height: auto;
}

/* Loading Indicator Styles */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #242a5e;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading p {
    margin-top: 20px;
    font-size: 18px;
    color: #242a5e;
}

/* Image Preview Styles */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.image-preview .preview-img {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.image-preview .preview-img:hover {
    transform: scale(1.05);
}

.image-preview .preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .preview-img .remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(227, 29, 80, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.image-preview .preview-img .remove-img:hover {
    background-color: rgba(192, 26, 69, 0.8);
}

/* Enhanced Upload Area Styles */
.upload-area {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    color: #888;
}

.upload-area.highlight {
    border-color: #e31d50;
    background-color: #f9f9f9;
    color: #e31d50;
}

.upload-area i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #e31d50;
}

.upload-area p {
    font-size: 16px;
    margin: 0;
}

.upload-area input[type="file"] {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        background-color: #fff;
        top: 80px;
        left: 0;
        right: 0;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        z-index: 99;
    }

    .menu-toggle {
        display: block;
    }

    .header-flex {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .profile {
        order: 3;
        margin-top: 10px;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .img-gallery img {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }

    .form-section {
        padding: 40px 20px;
    }

    .form-card h2 {
        font-size: 32px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .btn {
        font-size: 18px;
    }

    .img-gallery img {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .form-card h2 {
        font-size: 28px;
    }

    .btn {
        font-size: 16px;
    }
}
