/* Shadcn / Compact Design System */
:root { 
    --turf-primary: #1e3a1e;
    --turf-primary-foreground: #ffffff;
    --turf-secondary: #f4f4f5;
    --turf-secondary-foreground: #18181b;
    --turf-accent: #f4f4f5;
    --turf-accent-foreground: #18181b;
    --turf-border: #e4e4e7;
    --turf-input: #e4e4e7;
    --turf-ring: #1e3a1e;
    --turf-radius: 0.5rem;
    --turf-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#turf-calculator-container {
    max-width: 500px; /* Compact width */
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--turf-border);
    border-radius: var(--turf-radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: var(--turf-font);
    color: #09090b;
    box-sizing: border-box;
}

#turf-calculator-container * {
    box-sizing: border-box;
}

/* Animations */
.turf-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.turf-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Typography */
#turf-calculator-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    color: #09090b;
    line-height: 1.2;
    margin-top: 0;
}
.description {
    font-size: 0.875rem;
    color: #71717a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.subtitle {
    font-size: 0.875rem;
    color: #71717a;
    font-weight: 400;
}

/* Form Groups */
.compact-group { margin-bottom: 1.25rem; }
.compact-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #09090b;
}

/* Inputs */
#turf-calculator-container input[type="number"], 
#turf-calculator-container input[type="text"], 
#turf-calculator-container input[type="tel"], 
#turf-calculator-container select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--turf-radius);
    border: 1px solid var(--turf-input);
    background-color: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
    margin: 0;
}
#turf-calculator-container input:focus, 
#turf-calculator-container select:focus {
    outline: none;
    border-color: var(--turf-ring);
    box-shadow: 0 0 0 2px rgba(30, 58, 30, 0.1);
}

/* Lawn Size Grid */
.lawn-size-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
}
.lawn-size-inputs span { color: #71717a; font-size: 0.875rem; }
.result-box {
    background: var(--turf-secondary);
    color: var(--turf-secondary-foreground);
    padding: 0.5rem 0.75rem;
    border-radius: var(--turf-radius);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    border: 1px solid var(--turf-border);
}

/* Option Cards (Grid) */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.option-card {
    border: 1px solid var(--turf-border);
    border-radius: var(--turf-radius);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.option-card:hover { background: var(--turf-accent); }
.option-card.selected {
    background: var(--turf-primary);
    color: var(--turf-primary-foreground);
    border-color: var(--turf-primary);
}
.option-card .icon { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; line-height: 1; }
.option-card strong { display: block; font-size: 0.8rem; font-weight: 500; line-height: 1.2; }
.option-card small { display: none; } /* Hide descriptions for compact mode */

/* Toggle Options */
.compact-toggle {
    display: flex;
    background: var(--turf-secondary);
    padding: 0.25rem;
    border-radius: var(--turf-radius);
}
.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--turf-radius) - 2px);
    cursor: pointer;
    color: #71717a;
    transition: all 0.2s;
}
.toggle-btn.selected {
    background: #fff;
    color: #09090b;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Actions */
.step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.btn-next, .btn-submit, .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--turf-radius);
    cursor: pointer;
    transition: all 0.2s;
    height: 2.5rem;
    line-height: 1;
    text-decoration: none;
}
.btn-next, .btn-submit {
    background: var(--turf-primary);
    color: var(--turf-primary-foreground);
    border: none;
    flex: 2;
}
.btn-next:hover, .btn-submit:hover { opacity: 0.9; }
.btn-back {
    background: transparent;
    color: #09090b;
    border: 1px solid var(--turf-border);
    flex: 1;
}
.btn-back:hover { background: var(--turf-accent); }
.full-width { width: 100%; }

#turf-cf7-container .step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

#turf-cf7-container .wpcf7-submit {
    background: var(--turf-primary);
    color: var(--turf-primary-foreground);
    border: none;
    flex: 2;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--turf-radius);
    cursor: pointer;
    transition: all 0.2s;
    height: 2.5rem;
    line-height: 1;
}

#turf-cf7-container .wpcf7-submit:hover {
    opacity: 0.9;
}

#turf-cf7-container .btn-back {
    background: transparent;
    color: #09090b;
    border: 1px solid var(--turf-border);
    flex: 1;
}

/* Recommendation Box */
.recommendation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--turf-border);
}
.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.compact-box {
    background: var(--turf-secondary);
    padding: 1rem;
    border-radius: var(--turf-radius);
    font-size: 0.875rem;
    color: #09090b;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--turf-primary);
}

/* Form Row */
.compact-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.compact-row input { flex: 1; }

/* Success */
.success-message {
    padding: 4rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.paper-plane-icon {
    margin-bottom: 1.5rem;
}

.paper-plane-icon svg {
    width: 60px;
    height: 60px;
    color: #4a7c0f; /* Nice vibrant green */
    transform: rotate(-10deg);
}

#turf-calculator-container .success-message h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #09090b;
    line-height: 1.2;
}

.success-subtitle {
    font-size: 1.125rem;
    color: #09090b;
    margin: 0;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 480px) {
    #turf-calculator-container { padding: 1rem; border: none; box-shadow: none; }
    .lawn-size-inputs { grid-template-columns: 1fr auto 1fr; row-gap: 0.75rem; }
    .lawn-size-inputs .equals, .lawn-size-inputs .result-box { grid-column: span 3; width: 100%; justify-self: center; }
    .compact-row { flex-direction: column; }
}

/* Hide Default CF7 Response Output */
.wpcf7-response-output {
    display: none !important;
}

.disclaimer {
    font-size: 0.75rem;
    color: #71717a;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.4;
}