/* ========== CSS VARIABLES ========== */
:root {
    /* WordPress Primary Color */
    --primary: #20836f;
    --primary-rgb: 32, 131, 111;
    --primary-foreground: #ffffff;
    
    /* Background & Foreground */
    --background: hsl(40, 20%, 98%);
    --foreground: hsl(200, 25%, 15%);
    
    /* Card */
    --card: #ffffff;
    --card-foreground: hsl(200, 25%, 15%);
    
    /* Secondary */
    --secondary: hsl(35, 30%, 94%);
    --secondary-foreground: hsl(200, 25%, 20%);
    
    /* Muted */
    --muted: hsl(40, 15%, 95%);
    --muted-foreground: hsl(200, 10%, 45%);
    
    /* Border & Input */
    --border: hsl(40, 20%, 88%);
    --input: hsl(40, 20%, 88%);
    
    /* Destructive */
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    
    /* Shadows */
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 40px -4px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius: 0.75rem;
}

/* ========== RESET & BASE ========== */
.calculator-container * {
    box-sizing: border-box;
}

.calculator-container {
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.calculator-container h1,
.calculator-container h2,
.calculator-container h3,
.calculator-container h4,
.calculator-container h5,
.calculator-container h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ========== CONTAINER ========== */
.calculator-container {
    max-width: 36rem;
    margin: 0 auto;
    padding: 1rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* ========== CARD ========== */
.calculator-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ========== PROGRESS BAR ========== */
.progress-bar-container {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-bar-wrapper {
    position: relative;
    height: 2rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    z-index: 1;
}

.progress-bar-text.light {
    color: var(--primary-foreground);
}

/* ========== QUESTION SECTION ========== */
.question-section {
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .question-title {
        font-size: 1.875rem;
    }
    .calculator-title {
        font-size: 2.25rem;
    }
}

/* ========== OPTIONS GRID ========== */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.options-grid.single-column {
    grid-template-columns: 1fr;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.option-card .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
}

.option-card .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.option-card .description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========== OPTION BUTTON ========== */
.option-button {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-button:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.option-button.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--foreground);
}

.option-button .checkmark {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: none;
    align-items: center;
    justify-content: center;
}

.option-button.selected .checkmark {
    display: flex;
}

.option-button .checkmark svg {
    width: 0.75rem;
    height: 0.75rem;
    color: white;
}

.option-full-width {
    grid-column: 1 / -1;
}

/* ========== TEXTAREA ========== */
.textarea-container {
    margin-top: 0.75rem;
}

.textarea-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    resize: none;
    transition: border-color 0.2s ease;
}

.textarea-field:focus {
    outline: none;
    border-color: var(--primary);
}

.multi-select-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

/* ========== BUTTONS ========== */
.button-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    letter-spacing: .03em;
    margin-right: auto !important;
    margin-top: auto !important;
    max-width: none !important;
    min-height: auto !important;
    min-width: auto !important;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
    background-color: rgba(var(--primary-rgb), 0.9);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-lg {
    font-size: 1.125rem;
}

.btn-xl {
    font-size: 1.25rem;
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

.btn-lg svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========== FORM ========== */
.form-section {
    margin-bottom: 1.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-badge svg {
    width: 1rem;
    height: 1rem;
}

.form-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group-half {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.error {
    border-color: var(--destructive);
}

.form-error {
    font-size: 0.875rem;
    color: var(--destructive);
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

/* ========== PRICE TEASER (Contact Form) ========== */
.price-teaser {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    overflow: hidden;
}

.price-teaser-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.price-teaser-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: teaser-spin 0.6s linear infinite;
}

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

.price-teaser-content {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.price-teaser-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-teaser-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-teaser-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.price-teaser-vat {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.price-teaser-cta {
    font-size: 0.875rem;
    color: var(--foreground);
    line-height: 1.4;
}

.price-teaser-cta strong {
    color: var(--primary);
}

@media (max-width: 480px) {
    .price-teaser-amount {
        font-size: 1.375rem;
    }
    .price-teaser-content {
        padding: 1rem;
    }
}

/* ========== TRUST SIGNALS (Contact Form) ========== */
.form-trust-signals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.trust-signal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.trust-signal-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.trust-signal-item svg[fill="currentColor"] {
    color: #f59e0b;
}

@media (max-width: 480px) {
    .form-trust-signals {
        grid-template-columns: 1fr;
    }
}

/* ========== RESULT SUMMARY ========== */
.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
}

.result-icon.large {
    width: 5rem;
    height: 5rem;
}

.result-icon.large svg {
    width: 2.5rem;
    height: 2.5rem;
}

.result-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.result-subtitle strong {
    color: var(--foreground);
}

.result-vat-context {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    display: inline-block;
    margin-top: 0.5rem;
}

.result-vat-breakdown {
    max-width: 340px;
    margin: 0 auto 1.25rem;
    text-align: left;
}

.result-vat-breakdown .result-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.result-vat-breakdown .result-detail-row.border-top {
    border-top: 2px solid var(--primary);
    padding-top: 10px;
    margin-top: 4px;
}

.result-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.result-box.primary {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.result-box.highlight {
    border: 3px solid var(--primary);
}

.result-box-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.result-box-header.muted {
    color: var(--muted-foreground);
}

.result-box-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.result-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.result-price.large {
    font-size: 2.25rem;
    color: var(--primary);
}

.result-price.primary {
    color: var(--primary);
}

.result-details {
    margin-bottom: 1rem;
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-detail-row.border-top {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.result-detail-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.result-detail-value {
    font-weight: 600;
    color: var(--foreground);
}

.result-warnings {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.result-warning {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.result-warning:last-child {
    margin-bottom: 0;
}

.result-warning svg {
    width: 1rem;
    height: 1rem;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.result-warning-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom:0px !important;
}

.result-warning-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0px !important;
}

.result-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.result-cta {
    margin-top: 1.5rem;
}

.result-cta .btn {
    margin-bottom: 0.75rem;
}

/* ========== TRUSTPILOT ========== */
.trustpilot-badge {
    text-align: center;
    margin-top: 2rem;
}

.trustpilot-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trustpilot-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.trustpilot-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #00b67a;
    fill: #00b67a;
}

.trustpilot-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trustpilot-star {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #00b67a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trustpilot-star svg {
    width: 1rem;
    height: 1rem;
    color: white;
    fill: white;
}

.trustpilot-score {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.trustpilot-score strong {
    font-weight: 600;
    color: var(--foreground);
}

.trustpilot-score .underline {
    text-decoration: underline;
}

/* ========== FEE BREAKDOWN ========== */
.fee-breakdown {
    text-align: left;
}

.fee-breakdown-title {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--foreground);
    margin-bottom:10px;
}

.fee-breakdown-list {
    display: flex;
    flex-direction: column;
}

.fee-breakdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.fee-breakdown-check {
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.fee-breakdown-text {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

/* ========== ICONS (Inline SVG) ========== */
.icon-home {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-building {
    width: 2.5rem;
    height: 2.5rem;
}
