/* Preventivi Page Specific Styles */

/* Page Hero Styles */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

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

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 43, 0.8), rgba(30, 61, 28, 0.6));
    z-index: -1;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--white);
}

.page-title {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Quote Benefits */
.quote-benefits {
    padding: 3rem 0;
}

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

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.benefit-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Quote Form */
.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-light));
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

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

.progress-step.completed .step-number {
    background: var(--secondary-light);
    color: var(--white);
}

.step-label {
    font-size: 0.875rem;
    color: #999;
    transition: var(--transition-fast);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-dark);
    font-weight: 500;
}

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

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content {
    min-height: 400px;
}

.step-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.step-subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

/* Service Options */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-option {
    background: var(--light-bg);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-light));
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.service-option:hover::before,
.service-option.selected::before {
    opacity: 0.1;
}

.service-option:hover,
.service-option.selected {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-option.selected {
    background: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-fast);
}

.service-option.selected .service-icon {
    transform: scale(1.1);
}

.service-option h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-option p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.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(45, 90, 43, 0.1);
}

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

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.checkbox-item:hover,
.radio-item:hover {
    background: var(--light-bg);
}

.checkbox-item input,
.radio-item input {
    width: auto;
    margin: 0;
}

.checkmark,
.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-fast);
}

.radiomark {
    border-radius: 50%;
}

.checkbox-item input:checked + .checkmark,
.radio-item input:checked + .radiomark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    opacity: 0;
    transition: var(--transition-fast);
}

.checkbox-item input:checked + .checkmark::after {
    opacity: 1;
}

.radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0;
    transition: var(--transition-fast);
}

.radio-item input:checked + .radiomark::after {
    opacity: 1;
}

/* Service Details */
.service-details {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Summary */
.summary-container {
    margin-bottom: 2rem;
}

.summary-section {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.summary-content {
    color: var(--text-light);
    line-height: 1.6;
}

.summary-content strong {
    color: var(--text-dark);
}

.final-note {
    display: flex;
    gap: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.note-icon {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.8;
}

.note-content h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.note-content ul {
    list-style: none;
    padding: 0;
}

.note-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
}

.note-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Alternative Contact */
.alternative-contact {
    background: var(--light-bg);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-option {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.contact-option:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.contact-option h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-option p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--white);
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-description {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
    }
    
    .quote-form-container {
        padding: 2rem 1.5rem;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-option {
        padding: 2rem 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-form-container {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-subtitle {
        font-size: 1rem;
    }
    
    .final-note {
        flex-direction: column;
        text-align: center;
    }
}
