:root {
    --primary-green: #28a745;
    --dark-green: #1e7e34;
    --primary-blue: #007bff;
    --primary-red: #e73c3e;
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark-gray);
}

.wizard-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.wizard-logo {
    max-width: 180px;
    margin-bottom: 30px;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.4;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--dark-gray);
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

/* Back Button */
.btn-back {
    background: transparent;
    color: #666;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-back:hover {
    color: var(--dark-gray);
    transform: translateX(-5px);
}

.btn-back::before {
    content: "←";
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: var(--white);
    border: 2px solid var(--light-gray);
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary-green);
    background: rgba(40, 167, 69, 0.05);
    transform: translateX(5px);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Analysis Screen */
.analysis-screen {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.analysis-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    min-height: 30px;
}

/* Lead Form */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2328a745' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

.form-group select:hover {
    border-color: var(--primary-green);
    background-color: rgba(40, 167, 69, 0.02);
}

.form-group select option {
    padding: 10px;
}

/* Animate dropdown when populated */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group select.populated {
    animation: dropdownFadeIn 0.3s ease-out;
}

.kvkk-note {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 25px;
}

/* Results */
.results-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

#result-title {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
}

.result-main-title {
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 800;
}

.botanical-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.botanical-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.botanical-card:hover {
    transform: translateY(-5px);
}

.botanical-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.botanical-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
}

.botanical-card:hover img {
    scale: 1.1;
}

.botanical-triptych {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    position: relative;
    background: white;
}

.botanical-triptych img {
    width: 100%;
    height: auto;
    display: block;
}

.triptych-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.botanical-gallery.is-triptych {
    display: block;
}

.botanical-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40, 167, 69, 0.85);
    color: white;
    padding: 6px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.result-section {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.result-section.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.result-section.expert-note {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.result-section ul {
    list-style: none;
    padding: 0;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
    color: var(--primary-green);
}

.result-section.warning .section-icon {
    color: #856404;
}

.result-section.expert-note .section-icon {
    color: #0c5460;
}

.result-section ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tech-spec-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.tech-spec-item strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.maintenance-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.maintenance-item h4 {
    color: var(--primary-green);
    margin-bottom: 8px;
}

.season-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .wizard-container {
        max-width: 100%;
    }

    .step {
        display: none !important;
    }

    .step.active#step-results {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .step-content {
        box-shadow: none;
        padding: 0;
    }

    .cta-section,
    .btn-back,
    .btn-secondary {
        display: none !important;
    }

    #result-title {
        -webkit-text-fill-color: var(--dark-green);
        color: var(--dark-green);
    }

    .result-section {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .step-content {
        padding: 35px 25px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .option-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }

    .cta-section {
        flex-direction: column;
    }

    .botanical-gallery {
        grid-template-columns: 1fr;
    }
}