/**
 * AWTGR Calculator Public Styles
 * Main calculator container and step layout
 */

/* Calculator Container */
.awtgr-calculator-wrapper {
    width: 100%;
    max-width: 1196px;
    margin: 0 auto;
}

#calculator,
.awtgr-calculator-container {
    display: block;
    position: relative;
    width: 1196px;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Calculator Steps - Hidden by default */
.calculator-step,
.awtgr-step {
    display: none !important;
    position: static;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 40px 30px 60px;
    background: #53982B url(../img/rekenmodule-bg.png) bottom left no-repeat;
    background-size: 100% 100%;
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    text-align: left;
    border-radius: 8px;
    overflow: visible;
}

/* Active step is visible */
.calculator-step.active,
.awtgr-step.active,
.calculator-step.step1,
.calculator-step.step2.active,
.calculator-step.step3.active,
.calculator-step.step4.active,
.calculator-step.step5.active {
    display: block !important;
}

/* Initial visibility is controlled via `.active` classes set in JS */

/* Step Header */
.awtgr-step-header {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.awtgr-step-header h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 28px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
}

.awtgr-step-header p {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 16px;
    line-height: 26px;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 500;
}

/* Step Content */
.awtgr-step-content {
    position: relative;
    height: calc(100% - 100px);
    overflow: visible;
}

/* Form Styles */
.awtgr-form {
    width: 100%;
    overflow: visible;
}

.awtgr-form-group {
    display: block;
    margin-bottom: 5px;
    margin-bottom: 8px;
    vertical-align: middle;
}

.awtgr-form-group label {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    vertical-align: middle;
}

.awtgr-form-group label .required {
    color: #ffeb3b;
    margin-left: 2px;
}

.awtgr-form-group input[type="text"],
.awtgr-form-group input[type="number"],
.awtgr-form-group input[type="hidden"]+*,
.awtgr-form-group select {
    width: auto;
    width: 160px;
    min-width: 100px;
    max-width: 100%;
    padding: 6px 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 16px;
    line-height: 1em;
    box-sizing: border-box;
    transition: all 0.2s ease;
    vertical-align: middle;
    height: 44px;
}

.awtgr-form-group input[type="text"]:focus,
.awtgr-form-group input[type="number"]:focus,
.awtgr-form-group select:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.awtgr-form-group input.error {
    border-color: #ff5252;
}

.awtgr-field-hint {
    display: block;
    margin-top: 2px;
    margin-left: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Country Selector - Compact flags only */
body div .awtgr-country-selector {
    display: inline-flex;
    gap: 6px;
    vertical-align: middle;
}

body div .awtgr-country-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body div .awtgr-country-btn:hover,
body div .awtgr-country-btn:focus,
body div .awtgr-country-btn:active,
body div .awtgr-country-btn:focus-visible {
    background-color: #bbfabb !important;
    border-color: #00b142 !important;
}

body div .awtgr-country-btn.active {
    background-color: #bbfabb !important;
    border-color: #00b142 !important;
}

body div .awtgr-flag-icon {
    font-size: 24px;
    line-height: 1;
}

body div .awtgr-country-name {
    display: none;
}

/* Delivery Type Selector - Compact horizontal */
.awtgr-delivery-type-selector {
    display: inline-flex;
    gap: 6px;
    vertical-align: middle;
    margin-left: 0;
}

.awtgr-radio-card {
    position: relative;
    cursor: pointer;
}

.awtgr-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.awtgr-radio-content {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: 100px;
}

.awtgr-radio-content:hover,
.awtgr-radio-content:focus,
.awtgr-radio-content:active,
.awtgr-radio-content:focus-visible {
    background-color: #bbfabb !important;
    border-color: #00b142 !important;
    color: #000;
}

.awtgr-radio-card input[type="radio"]:focus+.awtgr-radio-content,
.awtgr-radio-card input[type="radio"]:active+.awtgr-radio-content,
.awtgr-radio-card input[type="radio"]:focus-visible+.awtgr-radio-content,
.awtgr-radio-card input[type="radio"]:hover+.awtgr-radio-content {
    outline: 1px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.awtgr-radio-card input[type="radio"]:checked+.awtgr-radio-content {
    background-color: #bbfabb !important;
    border-color: #00b142 !important;
    color: #000;
}

.awtgr-radio-icon {
    display: none;
}

.awtgr-radio-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
}

.awtgr-radio-desc {
    display: none;
}

/* Buttons */
.awtgr-btn,
body div .awtgr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background-color: #fff;
    color: #53982B;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
    height: 44px;
    width: auto;
    max-width: 100%;
    min-width: 100px;
}

input[type="submit"].awtgr-btn,
body div input[type="submit"].awtgr-btn,
button[type="submit"].awtgr-btn,
body div button[type="submit"].awtgr-btn,
.awtgr-btn.awttgr-btn-submit,
body div .awtgr-btn.awttgr-btn-submit {
    display: inline-flex;
    padding: 8px 44px 8px 18px;
    justify-content: flex-start;
    background-image: url(../img/button-chevron.png);
    background-position: center right 20px;
    background-size: 9px 16px;
    background-repeat: no-repeat;
    width: auto;
    min-width: 100px;
}

.awtgr-btn-primary,
body div .awtgr-btn-primary,
input[type="submit"].awtgr-btn-primary,
body div input[type="submit"].awtgr-btn-primary,
button[type="submit"].awtgr-btn-primary,
body div button[type="submit"].awtgr-btn-primary {
    background-color: #ff8a18;
    color: #fff;
    border-color: #ff8a18;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.awtgr-btn-primary:hover,
body div .awtgr-btn-primary:hover,
input[type="submit"].awtgr-btn-primary:hover,
body div input[type="submit"].awtgr-btn-primary:hover,
button[type="submit"].awtgr-btn-primary:hover,
body div button[type="submit"].awtgr-btn-primary:hover,
.awtgr-btn-primary:active,
body div .awtgr-btn-primary:active,
input[type="submit"].awtgr-btn-primary:active,
body div input[type="submit"].awtgr-btn-primary:active,
button[type="submit"].awtgr-btn-primary:active,
body div button[type="submit"].awtgr-btn-primary:active,
.awtgr-btn-primary:focus,
body div .awtgr-btn-primary:focus,
input[type="submit"].awtgr-btn-primary:focus,
body div input[type="submit"].awtgr-btn-primary:focus,
button[type="submit"].awtgr-btn-primary:focus,
body div button[type="submit"].awtgr-btn-primary:focus,
.awtgr-btn-primary:focus-visible,
body div .awtgr-btn-primary:focus-visible,
input[type="submit"].awtgr-btn-primary:focus-visible,
body div input[type="submit"].awtgr-btn-primary:focus-visible,
button[type="submit"].awtgr-btn-primary:focus-visible,
body div button[type="submit"].awtgr-btn-primary:focus-visible,
.awtgr-btn.awttgr-btn-submit:hover,
body div .awtgr-btn.awttgr-btn-submit:hover,
.awtgr-btn.awttgr-btn-submit:active,
body div .awtgr-btn.awttgr-btn-submit:active,
.awtgr-btn.awttgr-btn-submit:focus,
body div .awtgr-btn.awttgr-btn-submit:focus,
.awtgr-btn.awttgr-btn-submit:focus-visible,
body div .awtgr-btn.awttgr-btn-submit:focus-visible {
    background-color: #235305;
    border-color: #235305;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-position: center right 14px;
    background-size: 9px 16px;
    background-repeat: no-repeat;
}

.awtgr-btn-secondary,
body div .awtgr-btn-secondary,
button[type="button"].awtgr-btn-secondary,
body div button[type="button"].awtgr-btn-secondary {
    background-color: #fff;
    color: #53982B;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.awtgr-btn-secondary:hover,
body div .awtgr-btn-secondary:hover,
button[type="button"].awtgr-btn-secondary:hover,
body div button[type="button"].awtgr-btn-secondary:hover,
.awtgr-btn-secondary:active,
body div .awtgr-btn-secondary:active,
button[type="button"].awtgr-btn-secondary:active,
body div button[type="button"].awtgr-btn-secondary:active,
.awtgr-btn-secondary:focus,
body div .awtgr-btn-secondary:focus,
button[type="button"].awtgr-btn-secondary:focus,
body div button[type="button"].awtgr-btn-secondary:focus,
.awtgr-btn-secondary:focus-visible,
body div .awtgr-btn-secondary:focus-visible,
button[type="button"].awtgr-btn-secondary:focus-visible,
body div button[type="button"].awtgr-btn-secondary:focus-visible {
    background-color: #235305;
    border-color: #235305;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.awtgr-btn:disabled,
.awtgr-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.awtgr-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Error/Success Messages */
.awtgr-form-group.awtgr-feedback {
    display: block !important;
    width: 100%;
    clear: both;
    margin-top: 8px;
}

.awtgr-error-message,
.awtgr-success-message {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.awtgr-error-message {
    background: rgba(255, 82, 82, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.awtgr-success-message {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Session Summary */
.awtgr-session-summary,
.awtgr-summary-section {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.awtgr-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.awtgr-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.awtgr-summary-value {
    font-size: 14px;
    font-weight: 700;
}

/* Loading State */
.awtgr-loading {
    text-align: center;
    padding: 20px;
    color: #000;
    font-size: 14px;
}

/* Notice Boxes */
.awtgr-notice-box {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.awtgr-notice-info {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid rgba(33, 150, 243, 0.5);
}

.awtgr-notice-icon {
    font-size: 20px;
    line-height: 1;
}

.awtgr-notice-content {
    flex: 1;
    line-height: 1em;
}

.awtgr-notice-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.awtgr-notice-content p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
}

body div .awtgr-upsell-desc {
    padding-bottom: 10px;
}

body div .awtgr-product-description ul,
body div .awtgr-upsell-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body div .awtgr-product-description ul li,
body div .awtgr-upsell-desc ul li {
    padding: 0 0 0 25px;
    background: url(../img/li-check.png) left 5px / 16px no-repeat;
}

body div .awcf-steps {
    width: 150px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    position: relative;
    gap: 10px;
}

body div .awcf-steps>a {
    display: inline-block;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    margin: 0;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border: 1px solid #fff;
    border-radius: 20px;
}

body div .awcf-steps>a.active {
    background: #fff;
    color: #235305;
}

body div .awcf-steps>a:not(.active):hover {
    border-color: #000;
    color: #000;
}

body div .awcf-steps>a.disabled {
    pointer-events: none;
    cursor: default;
}

body span.awtgr-flag-icon-wrap,
body span.awtgr-icon-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

body .awtgr-img-icon {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

body div .awtgr-form-actions {
    display: none;
}

#awtgr-grass-products-container .splide__pagination__page.is-active,
.awtgr-calculator-wrapper .splide__pagination__page.is-active {
    background: #6ab52e;
    border-color: #6ab52e;
    transform: scale(1) !important;
}

body div .awtgr-edit-m2-btn {
    padding: 3px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    background-color: #333;
    border: 1px solid #333;
    color: #ffffff;
    transition: all 0.4s ease;
}

body div .awtgr-edit-m2-btn:hover {
    background-color: #ffffff;
    border-color: #333;
    color: #000000;
}

.awtgr-product-card .awtgr-product-unavailable-msg img,
.awtgr-product-card .awtgr-product-quote-msg img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    vertical-align: middle;
    margin-right: 6px;
}

.awtgr-calculator-container .awtgr-product-card .price,
.awtgr-calculator-container .awtgr-upsell-product .awtgr-upsell-price strong {
    color: #ff8a18;
    font-weight: 600;
    font-size: 22px;
    padding-bottom: 10px;
    display: block;
    position: relative;
}

.awtgr-calculator-container .awtgr-product-card .price-sub,
.awtgr-calculator-container .awtgr-upsell-product .awtgr-upsell-price .price-sub {
    font-size: 14px;
    line-height: 1.2em;
    padding-bottom: 10px;
    display: block;
    position: relative;
}

.awtgr-calculator-container .awtgr-product-card p {
    padding: 0;
    margin: 0;
}

/* Hide empty label colon for upsell products in cart */
.variation dt:has(.awtgr-hidden-label) {
    display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {

    #calculator,
    .awtgr-calculator-container {
        width: 100%;
        height: auto;
        min-height: 291px;
    }

    .calculator-step,
    .awtgr-step {
        height: auto;
        min-height: 291px;
    }
}

@media (max-width: 768px) {

    .awtgr-country-selector,
    .awtgr-delivery-type-selector {
        flex-direction: column;
    }

    .awtgr-country-btn,
    .awtgr-radio-card {
        max-width: 100%;
    }

    .awtgr-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================================================
   READONLY FIELD STYLING
   Fields that are locked but need to submit their values
   Using readonly instead of disabled ensures values are submitted with forms
   ========================================================================= */

/* Readonly text inputs, number inputs, email inputs, textareas */
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f9f9f9 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border-color: #ddd;
}

/* WooCommerce checkout/cart readonly fields */
.woocommerce-checkout input[readonly],
.woocommerce-checkout select[readonly],
.woocommerce-cart input[readonly],
.woocommerce-cart select[readonly] {
    background-color: #f9f9f9 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Select2 containers for readonly select fields */
.select2-container--readonly .select2-selection,
select[readonly] + .select2-container .select2-selection {
    background-color: #f9f9f9 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
}

/* Prevent interaction with readonly Select2 dropdowns */
select[readonly] + .select2-container {
    pointer-events: none;
}

/* Ensure readonly fields maintain readable text */
input[readonly],
select[readonly],
textarea[readonly] {
    color: #333 !important;
}
