* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

header {
    background: #fff;
    border-bottom: 2px solid #8cc63f;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, #8cc63f 0%, #6fb327 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.cta-button.primary {
    background: #0066b3;
    color: #fff;
}

.cta-button.primary:hover {
    background: #004d8a;
}

.cta-button.secondary {
    background: #fff;
    color: #0066b3;
}

.cta-button.secondary:hover {
    background: #f0f0f0;
}

.features-section {
    background: #5a9e2f;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    text-align: center;
}

.feature-item {
    padding: 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:last-child {
    border-right: none;
}

.info-section {
    padding: 3rem 1.5rem;
    background: #fff9e6;
    border-left: 4px solid #ffa500;
}

.info-box {
    max-width: 900px;
    margin: 0 auto;
}

.info-box h2 {
    font-size: 1.5rem;
    color: #d97706;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.form-section {
    padding: 2rem 1.5rem 4rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #000;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0066b3;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

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

.submit-button {
    background: #0066b3;
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    margin-top: 1rem;
    width: 100%;
}

.submit-button:hover {
    background: #004d8a;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.question-group {
    margin-bottom: 2rem;
}

.question-group > label {
    font-weight: 400;
    margin-bottom: 1rem;
}

.toggle-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.toggle-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    min-width: 100px;
    justify-content: center;
}

.toggle::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle:hover {
    border-color: #8cc63f;
    color: #333;
}

.toggle:hover::before {
    border-color: #8cc63f;
}

.toggle-group input[type="radio"]:checked + .toggle {
    background: #f0f9e8;
    color: #2d6b0f;
    border-color: #8cc63f;
    font-weight: 600;
}

.toggle-group input[type="radio"]:checked + .toggle::before {
    background: #8cc63f;
    border-color: #8cc63f;
    box-shadow: inset 0 0 0 3px #fff;
}

.collapsible {
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease-out;
    background: #f8fdf3;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5f4dc;
}

.collapsible[hidden] {
    display: none;
}

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

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 0.95rem;
}

.field input,
.field select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #0066b3;
}

.field input:disabled,
.field select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.radio-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    background: #fff;
    font-weight: 400;
    transition: all 0.2s;
}

.radio-button:hover {
    border-color: #0066b3;
}

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

.radio-button input[type="radio"]:checked + span {
    font-weight: 600;
}

.radio-button.active,
.radio-button:has(input[type="radio"]:checked) {
    background: #0066b3;
    color: #fff;
    border-color: #0066b3;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestions-dropdown.modern-suggestions {
    border: 1px solid #e0e0e0;
}

.suggestions-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

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

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:active {
    background: #e9ecef;
}

.suggestion-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-text {
    display: block;
    color: #333;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-secondary {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Custom scrollbar for suggestions */
.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 8px 8px 0;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo {
        height: 28px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .form-row .form-group:first-child {
        grid-column: 1 / -1;
    }

    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2n) {
        border-right: none;
    }

    .feature-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .logo {
        height: 26px;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

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

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

    .form-row .form-group:first-child {
        grid-column: 1;
    }

    .info-section {
        font-size: 1rem;
        padding: 2rem 1rem;
    }

    .form-section {
        padding: 1.5rem 1rem 3rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .radio-group {
        gap: 0.75rem;
    }

    .radio-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.875rem 2rem;
    }

    .question-group > label {
        font-size: 0.95rem;
    }

    .suggestion-item {
        padding: 0.75rem 0.875rem;
    }

    .suggestion-text {
        font-size: 0.9rem;
    }

    .toggle {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .toggle::before {
        width: 16px;
        height: 16px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .logo {
        height: 24px;
    }

    .hero {
        padding: 1.5rem 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .info-section {
        font-size: 0.9rem;
        padding: 1.5rem 0.75rem;
    }

    .form-container h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .radio-button {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

    .suggestion-icon {
        font-size: 1.1rem;
    }

    .suggestions-dropdown {
        max-height: 220px;
    }
}

