/* VGPBooking Public Styles */
.vgp-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px;
    color: #1f2937;
    line-height: 1.5;
    box-sizing: border-box;
}

.vgp-booking-wrapper *,
.vgp-booking-wrapper *::before,
.vgp-booking-wrapper *::after {
    box-sizing: border-box;
}

.vgp-booking-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    border: 1px solid #e5e7eb;
}

.vgp-step-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 24px;
    color: #111827;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.vgp-selected-type-label,
.vgp-selected-date-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6366f1;
}

.vgp-back-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.vgp-back-btn:hover {
    color: #4f46e5;
}

/* Types grid */
.vgp-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.vgp-type-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vgp-type-card:hover {
    border-color: #818cf8;
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.vgp-type-card.selected {
    border-color: #4f46e5;
    background: #e0e7ff;
}

.vgp-type-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.vgp-type-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.vgp-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* Calendar */
.vgp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vgp-calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.vgp-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.15s;
}

.vgp-nav-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.vgp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

.vgp-cal-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    min-width: 0;
    overflow: hidden;
}

.vgp-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    background: #f9fafb;
    color: #374151;
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 2px;
    overflow: hidden;
}

.vgp-cal-day .vgp-day-num {
    line-height: 1.15;
    font-size: inherit;
}

.vgp-cal-day .vgp-day-count {
    font-size: 0.6rem;
    margin-top: 1px;
    opacity: 0.9;
    line-height: 1.1;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 1px;
}

.vgp-cal-day.vgp-day-enabled {
    background: #ecfdf5;
    color: #065f46;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(79, 70, 229, 0.25);
    touch-action: manipulation;
    user-select: none;
}

.vgp-cal-day.vgp-day-enabled:hover,
.vgp-cal-day.vgp-day-enabled:active {
    border-color: #818cf8;
    background: #eef2ff;
}

.vgp-cal-day.vgp-day-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    pointer-events: none;
}

.vgp-msg-error {
    color: #b91c1c;
    text-align: center;
    padding: 16px;
}

.vgp-msg-muted {
    color: #9ca3af;
    text-align: center;
    padding: 16px;
}

.vgp-cal-day.vgp-day-selected {
    border-color: #4f46e5;
    background: #e0e7ff;
    color: #312e81;
}

.vgp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    font-size: 0.8rem;
    color: #6b7280;
}

.vgp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vgp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.vgp-dot-free { background: #34d399; }
.vgp-dot-empty { background: #d1d5db; }

/* Times */
.vgp-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.vgp-time-slot {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.15s;
    color: #1f2937;
    width: 100%;
    font-family: inherit;
    -webkit-tap-highlight-color: rgba(79, 70, 229, 0.2);
    touch-action: manipulation;
    appearance: none;
    -webkit-appearance: none;
}

.vgp-time-slot:hover,
.vgp-time-slot:active {
    border-color: #818cf8;
    background: #eef2ff;
}

.vgp-time-slot.selected {
    border-color: #4f46e5;
    background: #e0e7ff;
    color: #312e81;
}

.vgp-time-slot small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

/* Form */
.vgp-summary-box {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid #c7d2fe;
}

.vgp-summary-box h4 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4338ca;
}

.vgp-summary-box p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.vgp-form-group {
    margin-bottom: 16px;
}

.vgp-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.vgp-form-group input,
.vgp-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    color: #1f2937;
}

.vgp-form-group input:focus,
.vgp-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vgp-form-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.vgp-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.vgp-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.vgp-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Success */
.vgp-step-success {
    text-align: center;
    padding: 20px 0;
}

.vgp-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.vgp-step-success h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #065f46;
}

.vgp-step-success p {
    color: #6b7280;
    margin-bottom: 28px;
}

/* Responsive – telefon */
@media (max-width: 600px) {
    .vgp-booking-wrapper {
        padding: 12px 8px;
        max-width: 100%;
    }

    .vgp-booking-container {
        padding: 18px 12px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .vgp-step-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .vgp-selected-type-label,
    .vgp-selected-date-label {
        font-size: 0.85rem;
        width: 100%;
    }

    .vgp-types-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vgp-calendar-header {
        margin-bottom: 12px;
        gap: 8px;
    }

    .vgp-calendar-header h3 {
        font-size: 0.95rem;
        text-align: center;
        flex: 1;
    }

    .vgp-nav-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        font-size: 1.2rem;
    }

    .vgp-calendar-grid {
        gap: 3px;
    }

    .vgp-cal-weekday {
        font-size: 0.62rem;
        padding: 4px 0;
        letter-spacing: 0;
    }

    .vgp-cal-day {
        aspect-ratio: 1 / 1.05;
        border-radius: 8px;
        font-size: 0.8rem;
        border-width: 1.5px;
        padding: 1px;
    }

    .vgp-cal-day .vgp-day-num {
        font-size: 0.8rem;
    }

    /* Na telefonu samo številka prostih terminov (brez besede "prostih") */
    .vgp-cal-day .vgp-day-count {
        font-size: 0.55rem;
        letter-spacing: -0.02em;
    }

    .vgp-legend {
        gap: 10px;
        font-size: 0.72rem;
        margin-top: 12px;
    }

    .vgp-times-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .vgp-time-slot {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .vgp-summary-box {
        padding: 14px 14px;
    }

    .vgp-form-group input,
    .vgp-form-group textarea,
    .vgp-form-group select {
        font-size: 16px; /* prepreči zoom na iOS */
    }
}

@media (max-width: 380px) {
    .vgp-booking-container {
        padding: 14px 8px;
    }

    .vgp-calendar-grid {
        gap: 2px;
    }

    .vgp-cal-day {
        border-radius: 6px;
        font-size: 0.75rem;
    }

    .vgp-cal-weekday {
        font-size: 0.55rem;
    }

    .vgp-cal-day .vgp-day-count {
        font-size: 0.5rem;
    }
}
