.tgc-configurator {
    width: 100%;
    container-type: inline-size;
    font-family: 'Roboto', sans-serif;
}

/* Step indicators wrapper */
.tgc-step-indicators {
    width: 100%;
    margin-bottom: 30px;
}

/* Step labels row with arrows */
.tgc-step-labels-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    overflow-x: auto;
}

.tgc-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
}

.tgc-step-label.active {
    color: #00a3e2;
    font-weight: 600;
}

.tgc-step-label.completed {
    color: #9dc431;
    cursor: pointer;
    transition: color 0.15s;
}

.tgc-step-label.completed:hover {
    color: #8ab52a;
    text-decoration: underline;
}

.tgc-step-arrow {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
}

/* Progress bar below labels */
.tgc-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.tgc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9dc431, #00a3e2);
    border-radius: 3px;
}

/* Breadcrumb trail of selected values */
.tgc-breadcrumb-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tgc-breadcrumb-value {
    font-size: 12px;
    font-weight: 600;
    color: #2B2E37;
}

.tgc-breadcrumb-arrow {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    align-self: center;
}

/* Step content */
.tgc-step-content {
    min-height: 200px;
    margin-bottom: 20px;
}

.tgc-step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2B2E37;
}

/* Option cards grid */
.tgc-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tgc-option-card {
    width: fit-content;
    max-width: 200px;
    word-break: normal;
    white-space: normal;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #2B2E37;
    transition: none;
}
.tgc-option-card:hover {
    border-color: #9dc431;
    background: #f7fae9;
    color: #2B2E37;
}
.tgc-option-card.selected {
    border-color: #00a3e2;
    background: #00a3e2;
    color: #fff;
}
/* Option cards with images (category/type steps) */
.tgc-option-card--image {
    display: flex;
    flex-direction: column;
    width: 170px;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 30px 0px 30px 9px;
    position: relative;
}
.tgc-option-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.tgc-option-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.tgc-option-card--image:hover .tgc-option-card__image::before {
    transform: scale(1.2);
}
.tgc-option-card--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.3s ease;
    pointer-events: none;
}
.tgc-option-card--image:hover .tgc-option-card__image::after {
    background: rgba(0, 0, 0, 0.15);
}
.tgc-option-card__label {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}
.tgc-option-card--image .tgc-option-card__label {
    padding: 12px;
}
.tgc-option-card--image:hover .tgc-option-card__label {
    color: #2B2E37;
}
.tgc-option-card--image.selected .tgc-option-card__label {
    color: #fff;
}

/* Price display */
.tgc-price-display {
    text-align: center;
    padding: 16px;
    margin: 20px 0;
    background: #f5f5f5;
    border-radius: 8px;
}

.tgc-price-label {
    font-size: 20px;
    color: #666;
    margin-right: 8px;
    font-weight: 700;
}

.tgc-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #9dc431;
}

.tgc-price-breakdown {
    max-width: 320px;
    margin: 12px auto 0;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.tgc-price-breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    color: #555;
    padding: 2px 0;
}

/* Navigation buttons */
.tgc-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.tgc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1em;
    cursor: pointer;
    transition: none;
}

.tgc-btn-prev {
    background: #e0e0e0;
    color: #2B2E37;
}

.tgc-btn-prev:hover {
    background: #ccc;
}

.tgc-btn-cart {
    background: #9dc431;
    color: #fff;
    margin-left: auto;
}

.tgc-btn-cart:hover {
    background: #00a3e2;
}

/* Accessories */
.tgc-accessories-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 8px;
}

.tgc-accessories-list > * {
    min-width: 0;
}

.tgc-accessory-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.tgc-accessory-item:hover {
    background: #f7fae9;
}

.tgc-accessory-item input {
    margin-right: 12px;
    min-height: 18px;
}

.tgc-acc-name {
    flex: 1;
    font-size: 14px;
    color: #2B2E37;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tgc-acc-price {
    font-weight: 600;
    color: #9dc431;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 12px;
}

/* Loading */
.tgc-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.tgc-error {
    text-align: center;
    padding: 40px;
    color: #d63638;
    font-size: 16px;
}

/* Default description step */
.tgc-default-desc-text {
    font-size: 16px;
    color: #2B2E37;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tgc-default-desc-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tgc-btn-modify {
    background: #00a3e2;
    color: #fff;
}

.tgc-btn-modify:hover {
    background: #9dc431;
}

.tgc-btn-continue {
    background: #9dc431;
    color: #fff;
}

.tgc-btn-continue:hover {
    background: #00a3e2;
}

/* Accessory dropdown groups */
.tgc-accessory-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tgc-acc-dropdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #2B2E37;
}

.tgc-acc-dropdown {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #2B2E37;
    background: #fff;
    cursor: pointer;
    max-width: 100%;
}

.tgc-acc-dropdown:focus {
    border-color: #00a3e2;
    outline: none;
}

/* Accessory quantity inputs */
.tgc-acc-quantity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.tgc-acc-quantity-row label,
.tgc-acc-qty-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.tgc-acc-quantity {
    width: 60px;
    padding: 6px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    color: #2B2E37;
}

.tgc-acc-quantity:focus {
    border-color: #00a3e2;
    outline: none;
}

.tgc-acc-quantity-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive */
/* Action buttons (accessories step) */
.tgc-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tgc-btn-order {
    background: #9dc431;
    color: #fff;
}

.tgc-btn-order:hover {
    background: #8ab52a;
}

.tgc-btn-self-email {
    background: #00a3e2;
    color: #fff;
}

.tgc-btn-self-email:hover {
    background: #0092cc;
}

/* Form styles */
.tgc-form-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.tgc-order-form,
.tgc-self-email-form {
    max-width: 400px;
}

.tgc-form-field {
    margin-bottom: 16px;
}

.tgc-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2B2E37;
    margin-bottom: 6px;
}

.tgc-form-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #2B2E37;
    transition: border-color 0.15s;
}

.tgc-form-field input:focus {
    border-color: #00a3e2;
    outline: none;
}

.tgc-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.tgc-btn-back-to-acc {
    background: #e0e0e0;
    color: #2B2E37;
}

.tgc-btn-back-to-acc:hover {
    background: #ccc;
}

.tgc-btn-submit {
    background: #9dc431;
    color: #fff;
}

.tgc-btn-submit:hover {
    background: #8ab52a;
}

.tgc-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Choices summary (offer / self-email overview) — client #5 */
.tgc-summary {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: #fafafa;
    max-width: 400px;
}

.tgc-summary-title {
    font-size: 15px;
    font-weight: 700;
    color: #2B2E37;
    margin: 0 0 8px;
}

.tgc-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.tgc-summary-table td {
    padding: 4px 0;
    font-size: 14px;
    color: #2B2E37;
    vertical-align: top;
}

.tgc-summary-key {
    font-weight: 600;
    padding-right: 16px;
    white-space: nowrap;
}

.tgc-summary-val {
    width: 100%;
    text-align: right;
}

.tgc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e0e0e0;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #9dc431;
}

/* Kleur step: colour the text, and fill the whole box on hover / when selected (client R3.4) */
.tgc-option-card.tgc-kleur-groen .tgc-option-card__label { color: #2f4538; font-weight: 700; }
.tgc-option-card.tgc-kleur-zwart .tgc-option-card__label { color: #0e0e10; font-weight: 700; }
.tgc-option-card.tgc-kleur-groen:hover,
.tgc-option-card.tgc-kleur-groen.selected { background: #2f4538; border-color: #2f4538; }
.tgc-option-card.tgc-kleur-zwart:hover,
.tgc-option-card.tgc-kleur-zwart.selected { background: #0e0e10; border-color: #0e0e10; }
.tgc-option-card.tgc-kleur-groen:hover .tgc-option-card__label,
.tgc-option-card.tgc-kleur-groen.selected .tgc-option-card__label,
.tgc-option-card.tgc-kleur-zwart:hover .tgc-option-card__label,
.tgc-option-card.tgc-kleur-zwart.selected .tgc-option-card__label { color: #fff; }

/* Type/variant caption under the name (client R3.2) */
.tgc-option-card__caption {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}
.tgc-option-card--image .tgc-option-card__caption {
    padding: 0 12px 12px;
}

/* Comment + photo fields on the offer form (client R3.3) */
.tgc-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #2B2E37;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
}
.tgc-form-field textarea:focus {
    border-color: #00a3e2;
    outline: none;
}
.tgc-form-field input[type="file"] {
    width: 100%;
    font-size: 14px;
    color: #2B2E37;
}

/* Success message */
.tgc-success-message {
    text-align: center;
    padding: 40px 20px;
}

.tgc-success-message h3 {
    color: #9dc431;
    font-size: 24px;
    margin-bottom: 12px;
}

.tgc-success-message p {
    font-size: 16px;
    color: #666;
}

@container (max-width: 1315px) {
    .tgc-accessories-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 973px) {
    .tgc-accessories-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .tgc-step-labels-row {
        display: none;
    }

    .tgc-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .tgc-accessories-list {
        grid-template-columns: 1fr;
    }

    .tgc-accessory-item {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .tgc-acc-name {
        flex-basis: calc(100% - 32px);
        white-space: normal;
    }

    .tgc-acc-price {
        margin-left: 30px;
    }

    .tgc-option-card {
        padding: 12px 8px;
        font-size: 14px;
    }

    .tgc-price-value {
        font-size: 22px;
    }

    .tgc-step-dot {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .tgc-action-buttons {
        flex-direction: column;
    }

    .tgc-form-buttons {
        flex-direction: column;
    }
}
