/* PM PLUS Calculator Styles */

/* ===== Reset & Container ===== */
.pmplus-calculator-wrap,
.pmplus-calculator,
.pmplus-concrete-form,
.pmplus-tabs {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.pmplus-calculator-wrap *,
.pmplus-tabs * {
    box-sizing: border-box;
}

.pmplus-calculator {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

/* ===== Tabs (both mode) ===== */
.pmplus-tabs {
    max-width: 700px;
    margin: 0 auto;
}

.pmplus-tab-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.pmplus-tab-btn {
    flex: 1;
    padding: 14px 24px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pmplus-tab-btn:first-child {
    border-radius: 8px 0 0 0;
}

.pmplus-tab-btn:last-child {
    border-radius: 0 8px 0 0;
}

.pmplus-tab-btn.active {
    background: #fff;
    border-bottom-color: #fff;
    color: #FC5E14;
}

.pmplus-tab-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Progress Bar ===== */
.pmplus-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.pmplus-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pmplus-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pmplus-progress-step.active .pmplus-progress-circle {
    background: #FC5E14;
    color: #fff;
}

.pmplus-progress-step.completed .pmplus-progress-circle {
    background: #FC5E14;
    color: #fff;
}

.pmplus-progress-label {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    white-space: nowrap;
}

.pmplus-progress-step.active .pmplus-progress-label {
    color: #333;
    font-weight: 600;
}

.pmplus-progress-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.pmplus-progress-line.active {
    background: #FC5E14;
}

/* ===== Steps ===== */
.pmplus-step {
    display: none;
    animation: pmplusSlideIn 0.3s ease-in-out;
}

.pmplus-step.active {
    display: block;
}

@keyframes pmplusSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pmplus-step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #222;
}

/* ===== Cards (Step 1) ===== */
.pmplus-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pmplus-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pmplus-card:hover {
    border-color: #FC5E14;
    box-shadow: 0 4px 16px rgba(252, 94, 20, 0.15);
}

.pmplus-card.selected {
    border-color: #FC5E14;
    background: rgba(252, 94, 20, 0.05);
}

.pmplus-card-icon {
    margin-bottom: 12px;
}

.pmplus-card-icon img {
    width: 64px;
    height: 64px;
}

.pmplus-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;
}

.pmplus-card-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ===== Fields ===== */
.pmplus-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s;
}

.pmplus-field:focus {
    border-color: #FC5E14;
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 94, 20, 0.15);
}

.pmplus-field.error {
    border-color: #e53e3e;
}

.pmplus-field-group {
    margin-bottom: 16px;
}

.pmplus-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.pmplus-field-error {
    display: block;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    min-height: 18px;
}

/* ===== Step 2 Layout ===== */
.pmplus-step2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pmplus-dimensions-inputs {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pmplus-dimensions-inputs .pmplus-field-group {
    flex: 1;
}

.pmplus-multiply {
    font-size: 24px;
    font-weight: 700;
    color: #888;
    padding-top: 30px;
}

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

#pmplus-pile-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fafafa;
}

.pmplus-pile-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

/* ===== Soil Options (Step 3) ===== */
.pmplus-soil-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pmplus-soil-option {
    cursor: pointer;
}

.pmplus-soil-option input[type="radio"] {
    display: none;
}

.pmplus-soil-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.pmplus-soil-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.pmplus-soil-card span {
    font-size: 14px;
    color: #888;
}

.pmplus-soil-option input:checked + .pmplus-soil-card {
    border-color: #FC5E14;
    background: rgba(252, 94, 20, 0.05);
}

.pmplus-soil-option:hover .pmplus-soil-card {
    border-color: #FC5E14;
}

/* ===== Own Piles Toggle (Step 2, below dimensions) ===== */
.pmplus-own-piles-section {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s, background 0.2s;
}

.pmplus-own-piles-section:has(input:checked) {
    background: rgba(252, 94, 20, 0.04);
    border-color: #FC5E14;
}

/* Toggle switch label */
.pmplus-own-piles-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.pmplus-own-piles-toggle input[type="checkbox"] {
    display: none;
}

/* Toggle track */
.pmplus-own-piles-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.pmplus-own-piles-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.pmplus-own-piles-toggle input:checked + .pmplus-own-piles-switch {
    background: #FC5E14;
}

.pmplus-own-piles-toggle input:checked + .pmplus-own-piles-switch::after {
    transform: translateX(20px);
}

/* Text */
.pmplus-own-piles-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.pmplus-own-piles-hint {
    margin: 6px 0 0 56px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* Disabled dimensions when own piles selected */
.pmplus-step2-layout.pmplus-disabled {
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.25s ease;
}

/* ===== Manual Piles Fields ===== */
.pmplus-manual-fields {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    animation: pmplusSlideDown 0.25s ease-out;
}

.pmplus-manual-fields.visible {
    display: block;
}

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

.pmplus-manual-fields-row {
    display: flex;
    gap: 16px;
}

.pmplus-manual-fields-row .pmplus-field-group {
    flex: 1;
}

.pmplus-manual-info {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.pmplus-manual-info strong {
    color: #333;
    font-size: 15px;
}

/* ===== Location (Step 4) ===== */
.pmplus-location-layout {
    margin-bottom: 24px;
}

.pmplus-location-input {
    margin-bottom: 16px;
}

.pmplus-distance-info {
    font-size: 15px;
    margin-top: 8px;
    color: #333;
}

.pmplus-map-container {
    width: 100%;
}

.pmplus-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.pmplus-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
}

/* ===== Buttons ===== */
.pmplus-btn {
    background-color: #FC5E14;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pmplus-btn:hover {
    background-color: #e04d0a;
}

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

.pmplus-btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #e0e0e0;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pmplus-btn-secondary:hover {
    border-color: #333;
    color: #333;
}

.pmplus-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

/* ===== Result ===== */
.pmplus-result-card {
    text-align: center;
    padding: 24px;
}

.pmplus-result-title {
    font-size: 18px;
    color: #888;
    font-weight: 400;
    margin: 0 0 16px;
}

.pmplus-result-price {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.pmplus-price-value {
    color: #222;
}

.pmplus-result-vat {
    font-size: 14px;
    color: #888;
    margin: 0 0 24px;
}

.pmplus-result-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}

.pmplus-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.pmplus-detail-row:last-child {
    border-bottom: none;
}

.pmplus-detail-label {
    color: #888;
    font-size: 14px;
}

.pmplus-detail-value {
    font-weight: 600;
    font-size: 14px;
}

.pmplus-result-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #856404;
}

.pmplus-cta-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    font-size: 16px;
}

.pmplus-result-phone {
    font-size: 14px;
    color: #888;
    margin-top: 12px;
}

.pmplus-result-phone a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.pmplus-result-phone a:hover {
    color: #FC5E14;
}

/* ===== Contact Form ===== */
.pmplus-contact-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pmplus-contact-form h4 {
    font-size: 18px;
    margin: 0 0 16px;
}

.pmplus-gdpr-group {
    margin-top: 16px;
}

.pmplus-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.pmplus-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #FC5E14;
}

.pmplus-checkbox-label a {
    color: #FC5E14;
}

.pmplus-submit-btn {
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

/* ===== Success ===== */
.pmplus-success-message {
    text-align: center;
    padding: 40px 24px;
}

.pmplus-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pmplus-success-message h4 {
    font-size: 22px;
    margin: 0 0 8px;
}

.pmplus-success-message p {
    color: #888;
    font-size: 16px;
}

/* ===== Concrete Form ===== */
.pmplus-concrete-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

.pmplus-form-intro {
    color: #888;
    margin-bottom: 24px;
}

.pmplus-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* File Upload */
.pmplus-dropzone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pmplus-dropzone:hover,
.pmplus-dropzone.dragover {
    border-color: #FC5E14;
    background: rgba(252, 94, 20, 0.03);
}

.pmplus-dropzone p {
    margin: 0 0 4px;
    color: #888;
}

.pmplus-dropzone small {
    color: #aaa;
    font-size: 12px;
}

.pmplus-upload-link {
    background: none;
    border: none;
    color: #FC5E14;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.pmplus-file-info {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmplus-file-remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 16px;
}

/* ===== Sticky Call Button (mobile) ===== */
.pmplus-sticky-call {
    display: none !important;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #FC5E14;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .pmplus-calculator,
    .pmplus-concrete-form {
        max-width: 90%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pmplus-calculator,
    .pmplus-concrete-form {
        max-width: 100%;
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .pmplus-tab-content {
        padding: 16px;
    }

    .pmplus-cards {
        grid-template-columns: 1fr;
    }

    .pmplus-step2-layout {
        grid-template-columns: 1fr;
    }

    .pmplus-dimensions-inputs {
        flex-direction: row;
    }

    .pmplus-map {
        height: 300px;
    }

    .pmplus-progress-label {
        font-size: 10px;
    }

    .pmplus-progress-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .pmplus-progress-line {
        width: 30px;
    }

    .pmplus-cta-btn {
        max-width: 100%;
    }

    .pmplus-step-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .pmplus-step-actions .pmplus-btn,
    .pmplus-step-actions .pmplus-btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Show sticky call button on mobile when result is visible */
    .pmplus-result.active ~ .pmplus-sticky-call,
    .pmplus-sticky-call.visible {
        display: block !important;
    }

    .pmplus-result-price {
        font-size: 26px;
    }

    .pmplus-manual-fields-row {
        flex-direction: column;
        gap: 0;
    }
}
