/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Expert Thank You Page Styles */
.expert-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #dcb253 0%, #ffd700 100%);
    border-radius: 20px;
    color: #3A3A3C;
}

.expert-icon {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.expert-message h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.expert-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.expert-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.expert-notice i {
    font-size: 1.5rem;
    color: #ffd700;
    margin-top: 2px;
}

.expert-notice p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.exceptional-reason {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border-left: 4px solid #3A3A3C;
}

.reason-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3A3A3C;
}

.reason-detail i {
    font-size: 1.2rem;
    color: #ffd700;
    width: 20px;
    text-align: center;
}

.reason-detail span {
    font-size: 1rem;
    font-weight: 500;
}

.expert-reason {
    margin-bottom: 40px;
}

.expert-reason h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.reason-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.reason-icon {
    font-size: 3rem;
    color: #dcb253;
    margin-bottom: 20px;
}

.reason-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.reason-item p {
    color: #666;
    line-height: 1.6;
}

.expert-process {
    margin-bottom: 40px;
}

.expert-process h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #dcb253, #ffd700);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dcb253, #ffd700);
    border-radius: 50%;
    display: flex;
 align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .expert-message h1 {
        font-size: 2rem;
    }
    
    .expert-subtitle {
        font-size: 1.1rem;
    }
    
    .reason-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        gap: 20px;
    }
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f1F1F1 0%, #f1F1F1 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    background-color: #3A3A3C;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #dcb253;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.progress-step.active .step-label {
    color: #dcb253;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* Form Section */
.form-section {
    max-width: 600px;
    margin: 0 auto;
}

/* Property Info Display */
.property-info-display {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.property-info-display h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.selected-property {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.selected-property i {
    color: #dcb253;
    font-size: 1.2rem;
}

.quartier-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(220, 178, 83, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(220, 178, 83, 0.2);
}

.quartier-display i {
    color: #dcb253;
    font-size: 1rem;
}

.quartier-display span {
    color: #dcb253;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Privacy Notice */
.privacy-notice {
    background: rgba(220, 178, 83, 0.05);
    border: 1px solid rgba(220, 178, 83, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.privacy-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-notice i {
    color: #dcb253;
    font-size: 1rem;
}

.property-summary {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Property Form */
.property-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.property-form h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Radio Groups */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.radio-option {
    cursor: pointer;
}

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

.radio-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.radio-custom i {
    font-size: 1.5rem;
    color: #dcb253;
}

.radio-custom span {
    font-weight: 500;
    color: #333;
    text-align: center;
    font-size: 0.9rem;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #dcb253;
    background: #F1F1F1;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-option:hover .radio-custom {
    border-color: #dcb253;
    transform: translateY(-2px);
}

/* Renovation options - special styling for longer text */
.renovation-options {
    grid-template-columns: 1fr;
}

.renovation-options .radio-custom {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 15px 20px;
}

.renovation-options .radio-custom span {
    font-size: 0.85rem;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #dcb253;
    font-size: 1.1rem;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #dcb253;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

/* Thank You Page Styles */
.thank-you-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-message {
    margin-bottom: 40px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.success-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.email-notice {
    background: rgba(220, 178, 83, 0.1);
    border: 1px solid rgba(220, 178, 83, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.email-notice i {
    color: #dcb253;
    font-size: 1.5rem;
}

.email-notice p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Estimation Results */
.estimation-results {
    background: linear-gradient(135deg, #dcb253 0%, #dcb253 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    color: white;
}

.estimation-header {
    text-align: center;
    margin-bottom: 24px;
}

.estimation-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.estimation-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.estimation-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-range {
    text-align: center;
}

.price-display {
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.detail-item i {
    font-size: 1.1rem;
}

.estimation-metadata {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.metadata-item i {
    font-size: 1rem;
}

/* Responsive adjustments for estimation results */
@media (max-width: 768px) {
    .estimation-results {
        padding: 24px;
        margin: 20px 0;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .price-details {
        flex-direction: column;
        gap: 16px;
    }
    
    .estimation-metadata {
        flex-direction: column;
        gap: 12px;
    }
}

.property-summary-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #e9ecef;
}

.property-summary-card h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
}

.detail-row i {
    color: #dcb253;
    font-size: 1.1rem;
}

.next-steps {
    margin-bottom: 40px;
}

.next-steps h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2rem;
    color: #dcb253;
    margin-bottom: 15px;
}

.step-card h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.contact-info h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info p {
    color: #666;
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-option:hover {
    background: #dcb253;
    color: white;
    transform: translateY(-2px);
}

.contact-option i {
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Address Input Section */
.address-section {
    margin-bottom: 40px;
}

.input-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.input-container label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.address-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.address-input-wrapper:focus-within {
    border-color: #dcb253;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(0,0,0,0.15);
}

.input-icon {
    padding: 0 15px;
    color: #dcb253;
    font-size: 1.2rem;
}

#addressInput {
    flex: 1;
    padding: 18px 15px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

#addressInput::placeholder {
    color: #999;
}

/* Inline Loader */
.inline-loader {
    position: absolute;
    right: 80px; /* Position before the search button */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.loader-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #667eea;
    animation: loaderDots 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loaderDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.search-btn {
    padding: 18px 20px;
    background: #dcb253;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    z-index: 5;
}

.search-btn:hover:not(:disabled) {
    background: #dcb253;
    transform: translateY(-1px);
}

.search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #dcb253;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item i {
    color: #dcb253;
    font-size: 1rem;
}

.autocomplete-item .address-text {
    flex: 1;
}

.autocomplete-item .address-main {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.autocomplete-item .address-details {
    font-size: 0.9rem;
    color: #666;
}

.autocomplete-item .quartier-info {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Property Preview */
.property-preview {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #e9ecef;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.property-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.property-address i {
    color: #dcb253;
    font-size: 1.2rem;
}

.property-coordinates {
    color: #666;
    font-size: 0.9rem;
}

.map-container {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

#propertyMap {
    width: 100%;
    height: 100%;
}

.preview-actions {
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    margin-top: 60px;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #dcb253;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #dcb253 0%, #dcb253 100%);
    color: white;
    font-size: 1.1rem;
    padding: 18px 35px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Loading spinner (for valuation submission only) */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dcb253;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .address-input-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .inline-loader {
        right: 15px;
        top: 50%;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 0 0 15px 15px;
    }
    
    .autocomplete-dropdown {
        border-radius: 0 0 15px 15px;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .property-details {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .property-preview {
        padding: 20px;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .inline-loader {
        right: 10px;
    }
    
    .success-message h1 {
        font-size: 2rem;
    }
    
    .property-form {
        padding: 20px;
    }
}

/* Success/Error messages */
.message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Inline error messages */
.inline-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-error::before {
    content: "⚠️";
    font-size: 14px;
}

/* Responsive adjustments for messages */
@media (max-width: 768px) {
    .message {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        width: calc(100% - 30px);
    }
    
    .inline-error {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .message {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 12px 16px;
        font-size: 14px;
    }
}

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

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

/* Location Analysis */
.location-analysis {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e9ecef;
}

.location-analysis h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.location-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.location-result i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.location-success {
    color: #28a745;
}

.location-info {
    color: #17a2b8;
}

.location-warning {
    color: #dc3545;
}

.location-result strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.location-result p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Prediction Loader */
.prediction-loader {
    background: linear-gradient(135deg, #dcb253 0%, #dcb253 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    color: white;
    text-align: center;
}

.loader-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.loader-content p {
    margin: 0 0 24px 0;
    opacity: 0.9;
    font-size: 1rem;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.loader-steps {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    gap: 16px;
}

.loader-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.loader-steps .step i {
    font-size: 1.2rem;
    opacity: 0.7;
}

.loader-steps .step span {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .location-analysis {
        padding: 20px;
        margin: 20px 0;
    }
    
    .prediction-loader {
        padding: 24px;
        margin: 20px 0;
    }
    
    .loader-steps {
        flex-direction: column;
        gap: 12px;
    }
    
    .loader-steps .step {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
} 