:root {
    --bg-color: #112320;
    --primary-green: #64dc35;
    --primary-blue: #69c2b2;
    --text-color: #ffffff;
    --btn-color: #64dc35;
    --btn-text: #112320;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'DM Sans', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

.floating-elements {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-el {
    position: absolute;
    width: 350px;
    max-width: 80%;
    opacity: 0.8;
}

.el-1 { top: -50px; left: -50px; transform: rotate(10deg); opacity: 1; }
.el-2 { bottom: -50px; right: -50px; transform: rotate(-10deg); opacity: 0.7; }

.main-container {
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header { margin-bottom: 20px; }
.logo { margin-top: 8%; height: 50px; object-fit: contain; }

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}
.progress-fill {
    height: 100%;
    background: var(--primary-green);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.lead-form {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}
.step.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.step-intro {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}
.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.3;
}

.input-group { width: 100%; margin-bottom: 18px; }
.input-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.media-container { width: 100%; margin-bottom: 22px; text-align: center; }
.media-video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 0; }
.media-img { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: cover; }

.select-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.select-btn {
    padding: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: inherit;
}
.select-btn:hover,
.select-btn.selected {
    background: white;
    color: #112320;
    border-color: white;
    font-weight: 700;
    transform: translateX(4px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.25s;
    background: rgba(255,255,255,0.95);
    color: #112320;
    font-family: inherit;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(100,220,53,0.3);
}

.phone-wrapper { position: relative; display: flex; align-items: center; }
.flag-icon {
    position: absolute;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
    height: 22px;
    padding-right: 10px;
}
.flag-icon img { height: 14px; }
.phone-wrapper input { padding-left: 65px; }

.file-field {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: #112320;
    cursor: pointer;
    border: 2px dashed rgba(17,35,32,0.25);
    transition: all 0.2s;
}
.file-field:hover { border-color: var(--primary-green); }
.file-field i { font-size: 1.4rem; color: var(--primary-green); }
.file-field input[type="file"] { display: none; }
.file-label-text {
    flex: 1;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a5568;
}
.file-field.has-file { border-style: solid; border-color: var(--primary-green); }
.file-field.has-file .file-label-text { color: #047857; font-weight: 600; }

.error-msg {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}
.error-msg.show { display: block; }
.input-group.has-error input,
.input-group.has-error textarea {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

.next-btn {
    background: var(--btn-color);
    color: var(--btn-text);
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(100,220,53,0.4);
    font-family: inherit;
    margin-top: 10px;
}
.next-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(100,220,53,0.5); }
.next-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.back-btn {
    background: none;
    border: 0;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    align-self: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back-btn:hover { color: #fff; }
.back-btn.hidden { visibility: hidden; }

.testimonial {
    margin-top: 50px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    width: 100%;
    color: #112320;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-image-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--primary-green);
}
.testimonial-image { width: 100%; height: 100%; object-fit: cover; }
.quote-icon {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    color: var(--primary-green);
    background: #fff;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.quote-text { font-style: italic; color: #444; margin-bottom: 18px; font-weight: 500; }
.author-info { background: #f0f7f4; padding: 10px 14px; border-radius: 8px; font-weight: 700; }

.footer {
    margin-top: 40px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}
.footer a { color: rgba(255,255,255,0.6); }

@media (max-width: 480px) {
    .float-el { width: 180px; animation: slowRotate 60s linear infinite; transform-origin: center; }
    .el-1 { top: -30px; left: -30px; }
    .el-2 { bottom: -30px; right: -30px; animation-direction: reverse; }
    .step-title { font-size: 1.3rem; }
}
