/* Basis styling */
.atc-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 32px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000;
    font-size: 14px;
}

.atc-title {
    display: none;
}

h2 {
    font-size: 23px;
    font-weight: 300;
    margin-bottom: 24px;
}

/* Voortgangsindicator */
.atc-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    margin: 0 -32px 32px;
    padding: 0 32px;
}

.atc-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
    z-index: 1;
}

.atc-progress-step {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 16px;
    font-weight: 300;
    font-size: 12px;
}

.atc-progress-step.active {
    font-weight: 700;
}

/* Grid layout voor stappen */
.atc-steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.atc-step {
    display: none;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #000;
    padding: 40px;
}

.atc-step.active {
    display: block;
}

/* Formulier en kalender naast elkaar */
.atc-form-section,
.atc-calendar-section {
    grid-column: span 1;
}

/* Kalender aanpassingen */
.atc-calendar-view {
    border: 1px solid #000;
    padding: 16px;
}

.atc-calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.atc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    text-align: center;
}

.atc-weekdays div {
    padding: 5px 0;
    font-size: 12px;
    font-weight: 300;
}

.atc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex: 1;
}

.atc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.2s ease;
}

.atc-day.unavailable {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.atc-day.empty {
    border: none;
    pointer-events: none;
}

.atc-day.selected {
    background: #000;
    color: #fff;
}

.atc-day:not(.unavailable):not(.empty):hover {
    background: #f0f0f0;
}

/* Tijdsloten grid aanpassing */
.atc-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Formulier aanpassingen */
.atc-form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 20px;
}

.atc-form-group.full-width {
    grid-column: 1 / -1;
}

.atc-form-group {
    margin-bottom: 16px;
}

.atc-form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.atc-form-group input,
.atc-form-group textarea,
.atc-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
}

.atc-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Kalender header aanpassingen */
.atc-calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.atc-current-month {
    text-align: center;
    margin: 0;
    font-size: 14px;
}

/* Kalender navigatie knoppen styling */
.atc-prev-month,
.atc-next-month {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #bebebe;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    padding: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.atc-prev-month:hover,
.atc-next-month:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
}

/* Tijdsloten */
.atc-time-slots {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: 100%;
}

.atc-time-slots h4 {
    margin-bottom: 15px;
    font-weight: normal;
    font-size: 14px;
    color: #333;
}

.atc-time-slots .atc-selected-date {
    font-weight: bold;
}

.atc-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-slot:hover {
    background-color: #f5f5f5;
}

.time-slot.selected {
    background-color: #000;
    color: #fff;
}

.time-slot .time {
    font-weight: bold;
    margin-bottom: 5px;
}

.time-slot .duration {
    font-size: 0.9em;
    color: #666;
}

.time-slot.selected .duration {
    color: #ccc;
}

.no-slots {
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Styling voor loadingstate */
.atc-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* Knoppen */
.atc-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* Algemene button styling */
.atc-button {
    padding: 12px 24px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.atc-button:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
}

/* Primary button variant */
.atc-button.atc-primary {
    background: #000;
    color: #fff;
}

.atc-button.atc-primary:hover {
    background: #333;
    color: #fff;
}

/* Selected state voor knoppen (bijvoorbeeld bij uren selectie) */
.atc-button.selected {
    background: #000;
    color: #fff;
}

/* Button container styling */
.atc-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

/* Extra uren opties styling */
.atc-extra-hours-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.atc-extra-hours-options .atc-button {
    min-width: 100px;
    flex-grow: 1;
    padding: 15px 20px;
}

.extra-hours-button {
    position: relative;
    overflow: hidden;
}

.extra-hours-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.extra-hours-button:hover::after {
    transform: scaleX(1);
}

.extra-hours-button.selected::after {
    transform: scaleX(1);
    height: 3px;
}

/* Loader styling */
.atc-loader {
    width: 48px;
    height: 48px;
    border: 3px solid #eee;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: atc-spin 1s cubic-bezier(0.76, 0.35, 0.2, 0.7) infinite;
    margin: 40px auto;
}

@keyframes atc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bevestiging stap aanpassingen */
.atc-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.atc-confirmation-message {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atc-confirmation-message.visible {
    opacity: 1;
}

/* Extra uren stijl aanpassingen */
.atc-extra-hours {
    padding: 10px 0;
}

.atc-extra-hours-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
}

.atc-extra-hours-description {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

/* Form section aanpassingen */
.atc-form-section {
    max-width: 100%;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.atc-form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.atc-form-group {
    margin-bottom: 10px;
}

/* Calendar section aanpassingen */
.atc-calendar-section {
    padding-left: 10px;
}

.atc-calendar-view {
    border: none;
    padding: 0;
}

.atc-calendar-grid {
    margin-bottom: 10px;
}

.atc-weekdays {
    gap: 2px;
    font-size: 11px;
    color: #666;
}

.atc-days {
    gap: 2px;
}

.atc-day {
    aspect-ratio: 1;
    font-size: 11px;
    padding: 0;
}

.atc-time-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.atc-time-slot {
    font-size: 11px;
    padding: 6px 4px;
}

/* Normale stappen styling */
.atc-normal-steps {
    width: 100%;
    margin: 0 auto;
}

.atc-normal-steps .atc-step {
    width: 100%;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 30px;
}

.atc-normal-steps .atc-step.active {
    display: block;
}

/* Persoonlijke informatie stap styling */
.atc-personal-info-step {
    display: none;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 30px;
    width: 100%;
    margin: 0 auto;
}

.atc-personal-info-step.active {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
}

/* Calendar section - fix padding */
.atc-personal-info-step .atc-calendar-section {
    padding-right: 20px;
}

/* Form section - netjes rechts */
.atc-form-section {
    padding-right: 20px;
    border-right: 1px solid #eee;
}

/* Overzicht styling */
.atc-overview-details,
.atc-overview-personal,
.atc-overview-pricing {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.atc-overview-details h3,
.atc-overview-personal h3,
.atc-overview-pricing h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
}

.atc-overview-details p,
.atc-overview-personal p {
    margin-bottom: 10px;
}

/* Prijssectie styling */
#atc-price-breakdown {
    margin-bottom: 20px;
}

#atc-overview-base-duration {
    margin-right: 5px;
}

/* Prijsbedragen rechts uitlijnen */
.price-amount {
    margin-left: auto;
    min-width: 80px;
    text-align: right;
}

/* Verbeterde layout voor de prijssectie */
#atc-price-breakdown p {
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-start;
    padding: 8px 0;
    text-align: left;
}

/* Duidelijker onderscheid tussen de label en de waarde */
#atc-price-breakdown strong {
    margin-right: 10px;
    min-width: 120px;
}

/* Pas de style van de totaalregel aan */
p.atc-overview-total {
    font-weight: bold;
    border-top: 2px solid #ddd;
    border-bottom: none !important;
    padding-top: 12px;
    margin-top: 10px;
    font-size: 16px;
}

#atc-price-notes {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-style: italic;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

#atc-price-notes:empty {
    display: none;
}

/* Styling voor de introductietekst */
.atc-intro-text {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    max-width: 800px;
    margin: 0 0 40px 0;
}

.atc-payment-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    text-align: left;
}

/* Responsieve aanpassingen */
@media (max-width: 768px) {
    .atc-extra-hours-options {
        grid-template-columns: 1fr;
        display: grid;
    }
    
    /* Verberg de voortgangsindicator op mobiel */
    .atc-progress {
        display: none;
    }

    .atc-personal-info-step.active {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .atc-calendar-section {
        padding-left: 0;
        order: 1;
        margin-bottom: 20px;
    }

    .atc-form-section {
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
        order: 2;
    }

    .atc-buttons {
        flex-direction: column;
        gap: 8px;
        order: 3;
        margin-top: 20px;
    }

    .atc-button {
        width: 100%;
    }

    .atc-time-grid {
        grid-template-columns: 1fr;
    }
    
    .atc-form-group-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .atc-step[data-step="3"] {
        display: flex;
        flex-direction: column;
    }
    
    .atc-form-section,
    .atc-personal-info-step .atc-form-section {
        max-width: 100%;
        width: 100%;
    }
    
    /* Verbeter prijsweergave op mobiel */
    #atc-price-breakdown p {
        flex-direction: column;
        padding-bottom: 12px;
    }
    
    #atc-price-breakdown strong {
        margin-bottom: 5px;
        display: block;
        min-width: auto;
    }
    
    .price-amount {
        margin-left: 0;
        text-align: left;
    }
    
    /* Maak totaalregel beter zichtbaar */
    p.atc-overview-total {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    p.atc-overview-total strong {
        margin-bottom: 0;
    }
} 

@media (max-width: 768px) {
  .atc-container {
    padding: 0 !important;
  }
}

/* Stap 3 layout aanpassingen - normale column layout */
.atc-step[data-step="3"].active {
    display: block;
}
