/* ========== CONTAINER FIX ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ========== PLAN AFSPRAAK STYLES ========== */
.plan-section {
    padding: 100px 0 60px;
    background: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}


.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 12px;
}

.plan-header h1 span {
    color: var(--blue);
}

.plan-header p {
    color: var(--gray);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
    font-size: 14px;
}

.step-indicator.active {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(0, 144, 227, 0.05);
}

.step-indicator.completed {
    border-color: var(--green);
    color: var(--green);
    background: rgba(45, 255, 154, 0.1);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-indicator.active .step-num {
    background: var(--blue);
    color: white;
}

.step-indicator.completed .step-num {
    background: var(--green);
    color: var(--dark);
}

/* Form Cards */
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 144, 227, 0.08);
    display: none;
}

.plan-card.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.plan-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark);
}

.plan-card .subtitle {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 144, 227, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.error-text {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-text.show {
    display: block;
}

/* ========== SERVICE CARDS (Accordion Style) ========== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--blue-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 144, 227, 0.08);
}

.service-card.selected {
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(0, 144, 227, 0.12);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    position: relative;
}

.service-check {
    flex-shrink: 0;
}

.check-box {
    width: 26px;
    height: 26px;
    border: 2px solid #e2e8f0;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: white;
}

.check-box::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
}

.service-card.selected > .service-header .check-box {
    background: var(--blue);
    border-color: var(--blue);
}

.service-card.selected > .service-header .check-box::after {
    opacity: 1;
}

.check-box.small {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.check-box.small::after {
    font-size: 11px;
}

.service-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--dark);
    word-wrap: break-word;
}

.service-info p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========== ADDONS (Accordion with Animation) ========== */
.service-addons {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
    padding: 0 20px;
    background: #fafbfc;
}

.service-card.selected .service-addons {
    max-height: 600px;
    opacity: 1;
    border-top-color: #f0f0f0;
    padding: 16px 20px;
}

.addons-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    margin-top: 0;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    background: white;
}

.addon-item:last-child {
    margin-bottom: 0;
}

.addon-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Default: addon checkboxes are NOT checked */
.addon-item .check-box::after {
    opacity: 0;
}

.addon-item.selected {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 144, 227, 0.1);
}

.addon-item.selected > .addon-check .check-box {
    background: var(--blue);
    border-color: var(--blue);
}

.addon-item.selected > .addon-check .check-box::after {
    opacity: 1;
}

.addon-info {
    flex: 1;
    min-width: 0;
}

.addon-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 1px;
}

.addon-desc {
    display: block;
    font-size: 11px;
    color: var(--gray);
}

.addon-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========== PRICE SUMMARY ========== */
.price-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--dark);
}

.price-summary-row.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

/* ========== CALENDAR ========== */
.calendar-container {
    margin-top: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-header h3 {
    font-size: 16px;
    color: var(--dark);
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    padding: 6px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.calendar-nav button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-header {
    text-align: center;
    padding: 8px 4px;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    min-height: 44px;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    border-color: var(--blue-light);
    background: rgba(0, 144, 227, 0.05);
}

.calendar-day.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

.calendar-day.today {
    border-color: var(--green);
}

.calendar-day .availability {
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

/* ========== TIME SLOTS ========== */
.time-slots {
    margin-top: 24px;
}

.time-slots h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 13px;
    background: white;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: var(--blue-light);
}

.time-slot.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f5f5f5;
}

/* ========== WORKERS ========== */
.workers-list {
    margin-top: 20px;
}

.workers-list h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}

.worker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.worker-card:hover {
    border-color: var(--blue-light);
}

.worker-card.selected {
    border-color: var(--blue);
    background: rgba(0, 144, 227, 0.05);
}

.worker-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.worker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.worker-info {
    flex: 1;
    min-width: 0;
}

.worker-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
    margin-top: 0;
}

.worker-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

.worker-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-busy {
    background: #fff3e0;
    color: #ef6c00;
}

/* ========== SUMMARY (STEP 4) ========== */
.summary-box {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 0;
}

.summary-service {
    margin-bottom: 12px;
}

.summary-service-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    padding: 6px 0;
}

.summary-service-addons {
    padding-left: 16px;
}

.summary-addon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    padding: 3px 0;
}

.summary-addon span:first-child::before {
    content: '\2514 ';
    color: var(--blue);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: var(--gray);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 2px solid var(--blue);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

/* ========== PAYMENT SECTION ========== */
.payment-section {
    margin-top: 24px;
}

.payment-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}

.payment-single {
    background: white;
    border: 2px solid var(--blue);
    border-radius: 10px;
    padding: 16px;
}

.payment-ideal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ideal-icon {
    font-size: 28px;
}

.payment-ideal strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 2px;
}

.payment-ideal p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* ========== BUTTONS ========== */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-prev {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    color: var(--dark);
}

.btn-prev:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-next {
    flex: 1;
    min-width: 200px;
    padding: 12px 24px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-next:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-pay {
    flex: 1;
    min-width: 200px;
    padding: 14px 28px;
    background: var(--green);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.btn-pay:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-green-lg);
}

/* ========== LOADING ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 16px;
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
}

/* ========== MESSAGES ========== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.alert.show {
    display: block;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ========== POSTCODE INPUT ========== */
.postcode-input {
    max-width: 200px;
    text-transform: uppercase;
}

/* ========== FORM ROW CUSTOM ========== */
.form-row-custom {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-row-custom .form-group {
    margin-bottom: 0;
}

/* ========== KEYFRAMES ========== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE (MOBILE) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .plan-section {
        padding: 80px 0 40px;
    }

    .plan-header h1 {
        font-size: 26px;
    }

    .plan-header p {
        font-size: 14px;
        padding: 0 16px;
    }

    .plan-card {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .plan-card h2 {
        font-size: 18px;
    }

    .plan-card .subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .progress-steps {
        gap: 6px;
        margin-bottom: 24px;
    }

    .step-indicator {
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .step-indicator span:last-child {
        display: none;
    }

    .step-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-row-custom {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .postcode-input {
        max-width: 100%;
    }

    /* Service Cards Mobile */
    .services-list {
        gap: 10px;
    }

    .service-card {
        border-radius: 12px;
    }

    .service-header {
        padding: 14px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .service-icon {
        font-size: 24px;
    }

    .service-info h3 {
        font-size: 14px;
    }

    .service-info p {
        font-size: 12px;
    }

    .service-price {
        font-size: 16px;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .service-card.selected .service-addons {
        padding: 12px 14px;
    }

    .addon-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .addon-name {
        font-size: 12px;
    }

    .addon-desc {
        font-size: 10px;
    }

    .addon-price {
        font-size: 12px;
    }

    /* Price Summary Mobile */
    .price-summary {
        padding: 12px 16px;
    }

    .price-summary-row {
        font-size: 13px;
    }

    .price-summary-row.total {
        font-size: 16px;
    }

    /* Calendar Mobile */
    .calendar-container {
        margin-top: 12px;
    }

    .calendar-header h3 {
        font-size: 14px;
    }

    .calendar-nav button {
        padding: 5px 10px;
        font-size: 13px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 10px;
    }

    .calendar-day {
        min-height: 36px;
        font-size: 11px;
        border-radius: 6px;
        border-width: 1px;
    }

    /* Time Slots Mobile */
    .time-slots {
        margin-top: 16px;
    }

    .time-slots h3 {
        font-size: 14px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .time-slot {
        padding: 8px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* Workers Mobile */
    .workers-list {
        margin-top: 16px;
    }

    .workers-list h3 {
        font-size: 14px;
    }

    .worker-card {
        padding: 12px;
        gap: 10px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .worker-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .worker-info h4 {
        font-size: 13px;
    }

    .worker-info p {
        font-size: 11px;
    }

    .worker-badge {
        padding: 2px 8px;
        font-size: 10px;
    }

    /* Summary Mobile */
    .summary-box {
        padding: 14px;
    }

    .summary-section h4 {
        font-size: 13px;
    }

    .summary-service-main {
        font-size: 13px;
    }

    .summary-addon {
        font-size: 12px;
    }

    .summary-row {
        font-size: 13px;
    }

    .summary-total {
        font-size: 16px;
    }

    /* Payment Mobile */
    .payment-section {
        margin-top: 16px;
    }

    .payment-section h3 {
        font-size: 14px;
    }

    .payment-single {
        padding: 12px;
    }

    .ideal-icon {
        font-size: 24px;
    }

    .payment-ideal strong {
        font-size: 14px;
    }

    .payment-ideal p {
        font-size: 12px;
    }

    /* Buttons Mobile */
    .form-buttons {
        gap: 8px;
        margin-top: 20px;
    }

    .btn-prev,
    .btn-next,
    .btn-pay {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-pay {
        font-size: 15px;
    }

    /* Alerts Mobile */
    .alert {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .plan-section {
        padding: 70px 0 30px;
    }

    .plan-header h1 {
        font-size: 22px;
    }

    .plan-card {
        padding: 16px;
    }

    .service-header {
        padding: 12px;
    }

    .service-icon {
        font-size: 20px;
    }

    .calendar-day {
        min-height: 32px;
        font-size: 10px;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-prev,
    .btn-next,
    .btn-pay {
        padding: 10px 16px;
        font-size: 13px;
    }
}