/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 40px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #f4b41a;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.trust-badge img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f4b41a;
}

.trust-badge p {
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

/* ============================================
   Typeform-Style Lead Form
   ============================================ */
.lead-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 480px;
    position: relative;
}

/* Progress Bar */
.form-progress {
    height: 4px;
    background: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #2c5530, #3d7a43);
    width: 0%;
    transition: width 0.4s ease;
}

/* Form Container */
.typeform-container {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    color: #2c5530;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.form-header .subtitle {
    color: #888;
    font-size: 0.9rem;
}

/* Steps Container */
.form-steps {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

/* Individual Step */
.form-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 2px;
    pointer-events: none;
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 10;
}

.form-step.exit-left {
    opacity: 0;
    transform: translateX(-50px);
}

/* Question Number */
.step-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5530;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-number span {
    background: #2c5530;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Question Label */
.step-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

/* Input Row for multiple fields */
.input-row {
    display: flex;
    gap: 15px;
}

.input-row .step-input {
    flex: 1;
}

/* Input Styles */
.step-input {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.2rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: transparent;
    color: #333;
}

.step-input:focus {
    outline: none;
    border-bottom-color: #2c5530;
}

.step-input::placeholder {
    color: #bbb;
}

/* Select Dropdown Styling */
.step-select {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.2rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: transparent;
    color: #333;
    cursor: pointer;
    appearance: none;
    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='%232c5530'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.step-select:focus {
    outline: none;
    border-bottom-color: #2c5530;
}

/* Smaller label for options step */
.step-label-small {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
}

/* Options step - align to top instead of center */
.form-step-options {
    justify-content: flex-start !important;
    padding-top: 0 !important;
}

/* Smaller step number for options step */
.form-step-options .step-number {
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.form-step-options .step-number span {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

/* Option Cards for Situation Selection */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1px;
}

.option-card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    font-size: 0.8rem;
}

.option-card-btn:hover {
    border-color: #2c5530;
    background: #f8faf8;
}

.option-card-btn.selected {
    border-color: #2c5530;
    border-width: 2px;
    background: #f0f7f1;
}

.option-card-btn .option-key {
    width: 22px;
    height: 22px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #666;
    flex-shrink: 0;
}

.option-card-btn.selected .option-key {
    background: #2c5530;
    color: white;
}

.option-card-btn .option-text {
    font-size: 0.8rem;
    color: #333;
}

/* Navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.nav-btn-prev {
    background: #f5f5f5;
    color: #666;
}

.nav-btn-prev:hover {
    background: #e8e8e8;
}

.nav-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn-next {
    background: linear-gradient(135deg, #2c5530, #3d7a43);
    color: white;
}

.nav-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
}

.nav-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Loading Spinner for Submit Button */
.nav-btn-next.loading {
    pointer-events: none;
    opacity: 0.8;
}

.nav-btn-next .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.nav-btn-next.loading .spinner {
    display: inline-block;
}

.nav-btn-next.loading svg {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enter Hint */
.enter-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

.enter-hint kbd {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    border: 1px solid #ddd;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 60px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-message.show {
    display: flex;
}

.success-message svg {
    width: 80px;
    height: 80px;
    fill: #2c5530;
    margin-bottom: 25px;
}

.success-message h3 {
    color: #2c5530;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 1rem;
    max-width: 300px;
}

/* Hide form content when showing success */
.typeform-container.hide {
    display: none;
}

/* ============================================
   Options Section
   ============================================ */
.options-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: #2c5530;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.option-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.option-card:hover {
    transform: translateY(-10px);
}

.option-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.option-content {
    padding: 30px;
}

.option-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f4b41a, #f0a000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -50px;
    position: relative;
    box-shadow: 0 5px 20px rgba(244, 180, 26, 0.4);
}

.option-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.option-content h3 {
    color: #2c5530;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.option-content p {
    color: #666;
    margin-bottom: 20px;
}

.option-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.option-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.option-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5530;
    font-weight: bold;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    padding: 80px 0;
    background: #2c5530;
    color: white;
}

.testimonials .section-header h2 {
    color: white;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.testimonial-card .stars {
    color: #f4b41a;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author .name {
    font-weight: 600;
}

.testimonial-author .location {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 25px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #2c5530;
    font-size: 1.1rem;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #666;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 15px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f4b41a, #f0a000);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.4rem;
    color: #2c5530;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: #2c5530;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

.cta-phone {
    margin-top: 25px;
    font-size: 1.3rem;
    color: #2c5530;
}

.cta-phone a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}

footer .disclaimer {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 800px;
    margin: 20px auto 0;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .trust-badge {
        justify-content: center;
    }

    .options-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .lead-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .typeform-container {
        padding: 30px 20px;
    }

    .step-label {
        font-size: 1.2rem;
    }

    .step-input,
    .step-select {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .option-card-btn {
        padding: 14px 16px;
    }

    .option-card-btn .option-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .enter-hint {
        display: none;
    }
}
