/* Springkasteel Verhuur Plugin Styles - Complete Responsive Design */

/* ========== MAIN WRAPPER ========== */
.skv-calendar-wrapper {
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1400px;
    width: 90%;
}

/* ========== KALENDER HEADER ========== */
.skv-calendar-header {
    text-align: center;
    padding: 20px 0 30px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #4CAF50;
}

.skv-calendar-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.skv-title-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.skv-title-icon-emoji {
    font-size: 34px;
    line-height: 1;
}

.skv-title-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.skv-calendar-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ========== INFO SECTIE (SLIDESHOW + DETAILS) ========== */
.skv-info-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.skv-info-container {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 40px;
    align-items: center;
}

/* Slideshow Kolom */
.skv-info-images {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skv-single-image,
.skv-slideshow {
    width: 100%;
    height: 100%;
}

.skv-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skv-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.skv-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skv-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.skv-slide.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: scale(1.02);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.skv-slide-prev,
.skv-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(76, 175, 80, 0.85);
    color: white;
    border: none;
    padding: 18px 15px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 0;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    touch-action: manipulation;
}

.skv-slide-prev {
    left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.skv-slide-next {
    right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.skv-slide-prev:hover,
.skv-slide-next:hover {
    background: rgba(76, 175, 80, 1);
    padding: 20px 17px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skv-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    padding: 10px 18px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.skv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    touch-action: manipulation;
}

.skv-dot.active {
    background: #4CAF50;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

.skv-dot:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.15);
}

/* Info Details Kolom */
.skv-info-details {
    color: #333;
}

.skv-info-description {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.skv-info-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

.skv-info-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skv-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.skv-spec-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
    border-left-color: #4CAF50;
}

.skv-spec-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.skv-spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.skv-spec-content strong {
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.skv-spec-content span {
    color: #555;
    font-size: 13px;
}

.skv-spec-price {
    background: #e7f5e8;
    border-left-color: #4CAF50 !important;
}

.skv-spec-price:hover {
    background: #d4edda;
}

.skv-spec-price .skv-spec-content strong,
.skv-spec-price .skv-spec-content span {
    color: #2c3e50;
}

.skv-price-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.skv-spec-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.skv-spec-badge.yes {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.skv-spec-badge.no {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Instructies sectie */
.skv-calendar-instructions {
    background: #f0f0f0;
    color: #333;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #333;
}

.skv-calendar-instructions h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.skv-instructions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skv-instruction-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.skv-instruction-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.skv-instruction-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.skv-instruction-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.skv-calendar {
    width: 100%;
    min-height: 700px;
    margin: 0 auto;
    font-size: 15px;
}

/* Calendar & Form Container - Sidebar Layout */
.skv-calendar-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.skv-calendar-column {
    flex: 1;
    min-width: 0;
}

.skv-form-sidebar {
    flex: 0 0 360px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.skv-form-sticky {
    padding: 25px;
}

/* Desktop: laat formulierkaart even hoog lopen met kalenderkolom. */
@media (min-width: 992px) {
    .skv-calendar-container {
        align-items: stretch;
    }

    .skv-form-sidebar {
        align-self: stretch;
        display: flex;
    }

    .skv-form-sticky {
        width: 100%;
    }
}

.skv-form-sidebar h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.skv-form-hint {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.skv-selected-dates {
    margin-bottom: 20px;
    display: none;
}

.skv-dates-display {
    background: #f0f0f0;
    color: #333;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.skv-dates-display strong {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skv-date-item {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 14px;
    text-align: left;
    border: 1px solid #ddd;
    color: #333;
}

.skv-date-item:last-of-type {
    margin-bottom: 0;
}

.skv-dates-display p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.skv-form-highlighted {
    border-color: #4CAF50 !important;
}

/* Form styles */
.skv-booking-form {
    margin-top: 20px;
}

.skv-booking-form .skv-form-group {
    margin-bottom: 14px;
}

.skv-form-main-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.skv-form-advanced-inline {
    margin: 8px 0 12px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.skv-form-advanced-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #2f3b46;
}

.skv-form-advanced-inner {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
}

.skv-form-advanced-inner .skv-form-group {
    margin-bottom: 12px;
}

.skv-form-advanced-inner .skv-field-opmerkingen,
.skv-form-advanced-inner .skv-custom-field {
    grid-column: 1 / -1;
}

.skv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.skv-form-group input[type="text"],
.skv-form-group input[type="email"],
.skv-form-group input[type="tel"],
.skv-form-group input[type="date"],
.skv-form-group input[type="number"],
.skv-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.skv-form-group input:focus,
.skv-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Readonly date inputs - niet aanpasbaar */
.skv-form-group input[readonly],
.skv-form-group textarea[readonly] {
    background-color: #f9f9f9 !important;
    cursor: default !important;
    color: #333;
    border-color: #ddd;
    font-family: inherit;
}

.skv-form-group input[readonly]:focus,
.skv-form-group textarea[readonly]:focus {
    border-color: #ddd !important;
    box-shadow: none !important;
}

/* Geselecteerde dagen textarea */
#skv-date-display {
    line-height: 1.6;
    padding: 12px;
    min-height: 25px !important;
    overflow: hidden;
    resize: none;
}

.skv-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.skv-form-group textarea {
    resize: vertical;
    min-height: 35px;
}

.skv-address-input-wrap {
    position: relative;
}

.skv-address-input-wrap input {
    padding-right: 42px;
}

.skv-address-valid-indicator {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2e7d32;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%) scale(0.82);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.18);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.skv-address-valid-indicator.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.skv-address-valid-indicator.is-error {
    background: #dc3545;
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.18);
}

.skv-address-valid-indicator.is-valid {
    background: #2e7d32;
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.18);
}

.pac-container {
    z-index: 100000 !important;
}

.skv-form-group input.skv-valid,
.skv-form-group textarea.skv-valid,
.skv-form-group select.skv-valid {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.skv-form-group .skv-invalid,
.skv-form-group input.skv-invalid,
.skv-form-group textarea.skv-invalid,
.skv-form-group select.skv-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
}

.skv-form-group .skv-inline-error {
    margin-top: 6px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
    line-height: 1.4;
}

.skv-form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.skv-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    touch-action: manipulation;
}

.skv-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.skv-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.skv-btn-secondary {
    background-color: #ccc;
    color: #333;
}

.skv-btn-secondary:hover {
    background-color: #b3b3b3;
}

.skv-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.skv-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: slideIn 0.3s ease-out;
}

.skv-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* FullCalendar overrides */
.fc {
    font-size: 15px;
}

.fc .fc-toolbar-title {
    font-size: 26px;
    font-weight: 600;
}

.fc .fc-button-primary {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
    padding: 10px 16px;
    font-weight: 500;
}

.fc .fc-button-primary:hover {
    background-color: #45a049 !important;
    border-color: #45a049 !important;
}

.fc .fc-button-primary:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
}

.fc-daygrid-day {
    cursor: pointer;
    transition: background-color 0.2s;
    touch-action: manipulation;
}

/* Touchscreen optimalisatie */
@media (hover: none) and (pointer: coarse) {
    .skv-dot {
        width: 14px;
        height: 14px;
    }

    .skv-slide-prev,
    .skv-slide-next {
        padding: 20px 16px;
    }

    .fc-daygrid-day:hover,
    .fc-daygrid-day.fc-day-today:hover {
        background-color: inherit !important;
    }
}

.fc-daygrid-day:hover {
    background-color: #f0f0f0 !important;
}

.fc-daygrid-day.fc-day-today {
    background-color: #e3f2fd !important;
}

.fc-daygrid-day.fc-day-today:hover {
    background-color: #bbdefb !important;
}

.fc .fc-daygrid-day-number,
.fc-daygrid-day .fc-daygrid-day-number,
.fc-daygrid-day-frame .fc-daygrid-day-number,
.fc-daygrid-day-number {
    font-size: 16px !important;
    padding: 8px !important;
    font-weight: 600 !important;
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    -webkit-text-fill-color: #000 !important;
}

.fc-event {
    cursor: default !important;
}

/* Background events styling */
.fc-bg-event {
    opacity: 1 !important;
}

/* Gereserveerde dagen - niet klikbaar */
.fc-daygrid-day.fc-day-reserved {
    cursor: not-allowed !important;
    position: relative;
}

.fc-daygrid-day.fc-day-reserved::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.fc-daygrid-day.fc-day-reserved .fc-daygrid-day-number {
    position: relative;
    z-index: 2;
    /* erven volledig globale styling voor kleur */
}

/* Ensure reserved days are not clickable */
.fc-day:has(.fc-bg-event),
.fc-daygrid-day:has(.fc-bg-event) {
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.skv-reserved-event {
    pointer-events: none !important;
}

.fc .fc-col-header-cell {
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
}

.skv-btn-primary:disabled {
    background-color: #999 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.skv-btn-primary:disabled:hover {
    background-color: #999 !important;
    transform: none;
    box-shadow: none;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Extra Large Screens (1600px+) */
@media (min-width: 1600px) {
    .skv-calendar-wrapper {
        max-width: 1600px;
    }
}

/* Large Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
    .skv-calendar-wrapper {
        max-width: 1400px;
    }
}

/* Desktop / Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .skv-calendar-wrapper {
        width: 92%;
        padding: 35px;
    }
    
    .skv-info-container {
        grid-template-columns: 480px 1fr;
        gap: 30px;
    }
    
    .skv-info-images {
        height: 400px;
    }
    
    .skv-calendar-column {
        min-width: 0;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .skv-calendar-wrapper {
        width: 94%;
        padding: 30px;
    }
    
    .skv-info-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skv-info-images {
        height: 350px;
    }
    
    .skv-calendar-container {
        flex-direction: column;
    }
    
    .skv-calendar-column {
        min-width: 100%;
    }
    
    .skv-form-sidebar {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .skv-calendar {
        min-height: 600px;
    }

    .skv-calendar-bottom-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skv-calendar-legend-slot .skv-calendar-legend,
    .skv-reservation-summary-box {
        min-height: 0;
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    .skv-calendar-wrapper {
        width: 96%;
        padding: 25px;
        margin: 20px auto;
    }
    
    .skv-calendar-header {
        padding: 15px 0 20px 0;
        margin-bottom: 25px;
    }
    
    .skv-calendar-title {
        font-size: 26px;
    }
    
    .skv-info-section {
        padding: 20px;
    }
    
    .skv-info-images {
        height: 300px;
    }
    
    .skv-calendar-instructions {
        padding: 20px;
    }
    
    .skv-instructions-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skv-calendar {
        min-height: 500px;
    }
    
    .skv-form-sidebar {
        max-width: 100%;
    }
    
    .skv-form-sticky {
        padding: 20px;
    }
    
    .skv-form-actions {
        flex-direction: column;
    }

    .skv-form-advanced-inner {
        grid-template-columns: 1fr;
    }
    
    .skv-btn {
        width: 100%;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .skv-calendar-wrapper {
        width: 98%;
        padding: 20px;
        margin: 15px auto;
        border-radius: 8px;
    }
    
    .skv-calendar-header {
        padding: 10px 0 15px 0;
        margin-bottom: 20px;
    }
    
    .skv-calendar-title {
        font-size: 22px;
    }
    
    .skv-calendar-subtitle {
        font-size: 14px;
    }
    
    .skv-info-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .skv-info-images {
        height: 250px;
    }
    
    .skv-info-description p {
        font-size: 15px;
    }
    
    .skv-spec-item {
        padding: 10px 12px;
    }
    
    .skv-spec-icon {
        font-size: 20px;
    }
    
    .skv-calendar {
        min-height: 450px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 18px;
    }
    
    .fc .fc-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .fc .fc-toolbar {
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
}

/* Admin styles */
.skv-status-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

/* Legend info */
.skv-calendar-legend {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.skv-calendar-bottom-panels {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 16px;
    align-items: stretch;
}

.skv-calendar-bottom-panels > * {
    min-height: 100%;
    display: flex;
}

.skv-calendar-legend-slot .skv-calendar-legend {
    margin-top: 0;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.skv-reservation-summary-box {
    padding: 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.skv-calendar-legend-slot .skv-calendar-legend,
.skv-reservation-summary-box {
    min-height: 320px;
    box-sizing: border-box;
}

.skv-calendar-legend > *:last-child,
.skv-reservation-summary-box > *:last-child {
    margin-bottom: 0;
}

.skv-calendar-legend {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.skv-reservation-summary-box h4 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.skv-reservation-summary-box #skv-selected-dates-field {
    margin-bottom: 12px;
}

.skv-calendar-legend h4 {
    margin: 0 0 15px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

#skv-coupon-box {
    margin-top: 6px !important;
}

.skv-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.skv-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.skv-legend-color.today {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.skv-legend-color.selected {
    background-color: rgba(34, 197, 94, 0.25);
    border-color: #22c55e;
}

@media (max-width: 767px) {
    .skv-calendar-wrapper,
    .skv-info-section,
    .skv-form-sidebar,
    .skv-form-sticky,
    .skv-calendar-bottom-panels,
    .skv-calendar-bottom-panels > *,
    .skv-calendar-legend-slot .skv-calendar-legend,
    .skv-reservation-summary-box,
    #skv-coupon-box,
    #skv-coupon-box * {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .skv-calendar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 14px !important;
        overflow-x: clip;
    }

    .skv-calendar-bottom-panels {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .skv-calendar-bottom-panels > * {
        width: 100%;
    }

    .skv-calendar-legend-slot .skv-calendar-legend,
    .skv-reservation-summary-box {
        min-height: 0 !important;
        width: 100%;
    }

    .fc,
    .fc .fc-view-harness,
    .fc .fc-scrollgrid {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .skv-calendar-wrapper {
        padding: 16px 12px !important;
    }
}

.skv-legend-color.pending {
    background-color: rgba(255, 193, 7, 0.9);
    border-color: #ffc107;
}

.skv-legend-color.approved {
    background-color: rgba(220, 53, 69, 0.9);
    border-color: #dc3545;
}

.skv-legend-color.unavailable {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Event styling - zichtbare tekst op vakjes */
.fc-event.skv-event-visible {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 2px !important;
    line-height: 1.2 !important;
    color: #000 !important;
}

.fc-event.skv-event-visible .fc-event-title {
    color: #000 !important;
}

.fc-daygrid-event {
    white-space: normal !important;
    word-break: break-word !important;
    color: #000 !important;
}

/* Selectie feedback */
.skv-selecting {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.005); }
}

.fc-highlight {
    background: rgba(102, 126, 234, 0.3) !important;
}

/* Geselecteerde dagen - GROEN, nummers erven globale styling */
.fc-daygrid-day.skv-selected-day {
    background: rgba(34, 197, 94, 0.25) !important;
    border: 2px solid #22c55e !important;
    position: relative;
}

.fc-daygrid-day.skv-selected-day .fc-daygrid-day-number {
    font-weight: 700;
    color: #000;
}

.fc-daygrid-day.skv-selected-day::after {
    content: "✓";
    position: absolute;
    top: 3px;
    right: 6px;
    color: #22c55e;
    font-size: 14px;
    font-weight: bold;
}

/* Prijsinformatie styling */
#skv-pricing-info {
    animation: slideInPrice 0.4s ease-out;
}

@keyframes slideInPrice {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#skv-pricing-text {
    font-size: 13px !important;
}

#skv-total-price {
    animation: priceUpdate 0.5s ease-out;
}

@keyframes priceUpdate {
    0% {
        transform: scale(0.9);
        color: #2196f3;
    }
    50% {
        color: #ffc107;
    }
    100% {
        transform: scale(1);
        color: #4CAF50;
    }
}

/* ========== SUCCESS POPUP MODAL ========== */
.skv-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skv-success-popup.active {
    opacity: 1;
    visibility: visible;
}

.skv-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skv-popup-content {
    position: relative;
    background: #fff;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100000;
}

.skv-success-popup.active .skv-popup-content {
    transform: scale(1);
}

.skv-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    animation: popupIconBounce 0.6s ease;
}

@keyframes popupIconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.skv-popup-content h2 {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.skv-popup-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.skv-popup-close {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.skv-popup-close:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.skv-popup-close:active {
    transform: translateY(0);
}

/* Responsive popup */
@media (max-width: 600px) {
    .skv-popup-content {
        padding: 40px 30px;
        max-width: 85%;
    }
    
    .skv-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }
    
    .skv-popup-content h2 {
        font-size: 22px;
    }
    
    .skv-popup-content p {
        font-size: 14px;
    }
    
    .skv-popup-close {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ========== LOADING OVERLAY (tijdens verzenden) ========== */
.skv-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skv-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skv-loading-spinner {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.skv-loading-overlay.active .skv-loading-spinner {
    transform: scale(1);
}

/* Spinner animatie */
.skv-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skv-loading-text {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.skv-loading-subtext {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: block;
}

/* Responsive loading overlay */
@media (max-width: 600px) {
    .skv-loading-spinner {
        padding: 40px 30px;
        max-width: 85%;
    }
    
    .skv-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .skv-loading-text {
        font-size: 18px;
    }
    
    .skv-loading-subtext {
        font-size: 13px;
    }
}

/* ========================================================================
   FEATURE 1-7: ALL FORM SETTINGS ADVANCED FEATURES
   ======================================================================== */

/* Feature 1: Drag & Drop Sortable */
.skv-form-fields-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skv-field-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.skv-field-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.skv-field-card.ui-sortable-helper {
    background: #e7f3ff;
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
    opacity: 0.95;
    transform: rotate(2deg);
}

.skv-field-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.skv-field-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    cursor: grab;
}

.skv-field-card-header h4:active {
    cursor: grabbing;
}

.skv-field-card-flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skv-flag-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #666;
    user-select: none;
}

.skv-flag-checkbox input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
    cursor: pointer;
}

.skv-flag-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.skv-field-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skv-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skv-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.skv-field-group input.widefat {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.skv-field-group input.widefat:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
    outline: none;
}

.skv-field-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    font-style: italic;
}

.skv-field-info {
    padding: 8px 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 3px;
    font-size: 11px;
    color: #654321;
    font-weight: 500;
}

.skv-sortable-placeholder {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 4px;
    height: 80px;
    margin-bottom: 12px;
}

.skv-drag-handle {
    cursor: grab;
    font-size: 18px;
    color: #999;
    user-select: none;
}

.skv-drag-handle:active {
    cursor: grabbing;
}

/* Feature 2: Live Form Preview */
.skv-form-preview-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.skv-preview-field {
    margin-bottom: 15px;
}

.skv-preview-field:last-child {
    margin-bottom: 0;
}

.skv-preview-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.skv-required-star {
    color: #dc3545;
}

.skv-preview-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    color: #999;
    background: #fff;
    box-sizing: border-box;
}

/* Feature 3: Required field toggle already visible in form */

/* Feature 4: Copy settings button */
#skv-copy-settings-btn {
    width: 100%;
    margin-bottom: 10px;
}

#skv-copy-settings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#skv-copy-settings-btn.button-success {
    background-color: #2e7d32 !important;
    border-color: #1b5e20 !important;
    color: #fff !important;
}

/* Feature 5: Placeholder customization fields */
input[name*="_placeholder"] {
    font-style: italic;
    color: #999;
}

.skv-field-error {
    color: #dc3545;
    font-size: 11px;
    margin-top: 4px;
}

/* Feature 6: Form Completion Indicator (Progress Bar) */
.skv-progress-bar {
    background: #eee;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.skv-progress-fill {
    background: linear-gradient(90deg, #0073aa, #005a87);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.skv-progress-text {
    font-weight: 600;
    color: #0073aa;
}

/* Feature 7: Smart defaults (automatic show/hide) - no specific CSS needed */

/* Responsive design for admin form settings */
@media (max-width: 1200px) {
    .skv-field-row {
        grid-template-columns: 40px 1fr;
    }
    
    .skv-field-row > div:nth-child(2),
    .skv-field-row > div:nth-child(3) {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    #skv-form-preview {
        margin-top: 20px;
    }
    
    .skv-preview-field {
        margin-bottom: 12px;
    }
}

/* Final mobile safeguards (must stay at end to override earlier layout rules) */
.skv-calendar-wrapper {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 991px) {
    .skv-calendar-bottom-panels {
        grid-template-columns: 1fr;
    }

    .skv-calendar-legend-slot,
    .skv-reservation-summary-box {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .skv-calendar-wrapper,
    .skv-calendar-container,
    .skv-calendar-column,
    .skv-form-sidebar,
    .skv-calendar-bottom-panels,
    .skv-calendar,
    .skv-info-section,
    .skv-info-container {
        max-width: 100%;
        min-width: 0;
    }
}
