/**
 * Public Styles - LOPTA Booking
 * Version: 1.0.0
 * Author: LOPTA
 */

/* Container */
.lopta-booking-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Practitioner Info */
.lopta-practitioner-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
}

.lopta-practitioner-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.lopta-practitioner-details h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.lopta-practitioner-details p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Steps */
.lopta-booking-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lopta-booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lopta-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.lopta-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

/* Services Grid */
.lopta-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.lopta-service-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lopta-service-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.lopta-service-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.lopta-service-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.lopta-service-card h5 {
    margin: 5px 0 8px;
    font-size: 16px;
    color: #333;
}

.lopta-service-type {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}

.lopta-service-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.lopta-service-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lopta-service-price {
    font-weight: 600;
    color: #667eea;
}

.lopta-service-meet {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Calendar */
.lopta-calendar-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.lopta-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lopta-calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.lopta-calendar-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.lopta-calendar-nav:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.lopta-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.lopta-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.lopta-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.lopta-calendar-day:hover:not(.disabled):not(.other-month) {
    background: #f0f0ff;
}

.lopta-calendar-day.selected {
    background: #667eea;
    color: #fff;
}

.lopta-calendar-day.today {
    font-weight: 600;
    border: 2px solid #667eea;
}

.lopta-calendar-day.disabled,
.lopta-calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

/* Time Slots */
.lopta-selected-date {
    font-size: 16px;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 15px;
}

.lopta-slots-container {
    min-height: 100px;
}

.lopta-slots-loading {
    display: none;
    text-align: center;
    padding: 30px;
    color: #888;
}

.lopta-slots-container.loading .lopta-slots-loading {
    display: block;
}

.lopta-slots-container.loading .lopta-slots-grid,
.lopta-slots-container.loading .lopta-no-slots {
    display: none;
}

.lopta-no-slots {
    display: none;
    text-align: center;
    padding: 30px;
    color: #888;
}

.lopta-slots-container.no-slots .lopta-no-slots {
    display: block;
}

.lopta-slots-container.no-slots .lopta-slots-grid {
    display: none;
}

.lopta-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.lopta-slot-btn {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.lopta-slot-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.lopta-slot-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

/* Client Form */
.lopta-client-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
}

.lopta-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.lopta-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 18px;
}

.lopta-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.lopta-form-group input,
.lopta-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lopta-form-group input:focus,
.lopta-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lopta-form-group input.error {
    border-color: #dc3545;
}

/* Promo Section */
.lopta-promo-section {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lopta-promo-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.lopta-promo-input {
    display: flex;
    gap: 10px;
}

.lopta-promo-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

#lopta-promo-message {
    margin-top: 8px;
    font-size: 13px;
}

#lopta-promo-message.success {
    color: #28a745;
}

#lopta-promo-message.error {
    color: #dc3545;
}

/* Terms and Conditions */
.lopta-terms-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.lopta-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.lopta-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.lopta-checkbox-label input[type="checkbox"].error {
    outline: 2px solid #dc3545;
}

.lopta-terms-text {
    margin: 10px 0 0 30px;
    font-size: 12px;
    color: #666;
}

/* Price Summary */
.lopta-price-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.lopta-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.lopta-discount-row {
    color: #28a745;
}

.lopta-total-row {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* Buttons */
.lopta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lopta-btn-primary {
    background: #667eea;
    color: #fff;
}

.lopta-btn-primary:hover {
    background: #5a6fd6;
}

.lopta-btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.lopta-btn-secondary:hover {
    background: #d1d5db;
}

.lopta-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

.lopta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Booking Actions */
.lopta-booking-actions {
    margin-top: 20px;
}

#lopta-paypal-container {
    margin-bottom: 15px;
}

/* Navigation */
.lopta-booking-nav {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Confirmation */
.lopta-confirmation-content {
    text-align: center;
    padding: 40px 20px;
}

.lopta-confirmation-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.lopta-confirmation-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.lopta-confirmation-content p {
    color: #666;
    margin-bottom: 20px;
}

#lopta-meet-link-container {
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    margin: 20px 0;
}

.lopta-booking-summary {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Error state */
.lopta-error {
    color: #dc3545;
    padding: 20px;
    text-align: center;
    background: #fff5f5;
    border-radius: 8px;
}

/* Business Cards */
.lopta-business-card {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Classic Template */
.lopta-card-classic {
    border: 2px solid;
}

.lopta-card-classic .lopta-card-header {
    padding: 30px 20px;
    text-align: center;
}

.lopta-card-classic .lopta-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    margin: 0 auto;
    object-fit: cover;
}

.lopta-card-classic .lopta-card-body {
    padding: 20px;
}

.lopta-card-classic .lopta-card-name {
    margin: 0 0 15px;
    font-size: 22px;
    text-align: center;
}

.lopta-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.lopta-card-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.lopta-card-bio {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 15px;
}

.lopta-card-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.lopta-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
}

.lopta-card-booking-btn {
    display: block;
    padding: 12px 24px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.lopta-card-booking-btn:hover {
    opacity: 0.9;
}

/* Modern Template */
.lopta-card-modern {
    padding: 30px;
    text-align: center;
}

.lopta-card-modern .lopta-card-photo-wrapper {
    margin-bottom: 20px;
}

.lopta-card-modern .lopta-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.lopta-card-modern .lopta-card-name {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
}

.lopta-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.lopta-card-tag {
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.lopta-card-modern .lopta-card-bio {
    color: rgba(255,255,255,0.9);
}

.lopta-card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.lopta-card-action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.lopta-card-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lopta-card-action-btn.lopta-card-booking {
    width: auto;
    padding: 0 20px;
    border-radius: 22px;
    gap: 5px;
}

/* Minimal Template */
.lopta-card-minimal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid;
}

.lopta-card-minimal .lopta-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.lopta-card-minimal .lopta-card-info {
    flex: 1;
}

.lopta-card-minimal .lopta-card-name {
    margin: 0 0 5px;
    font-size: 18px;
}

.lopta-card-minimal .lopta-card-specialty {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

.lopta-card-minimal a {
    font-size: 14px;
    text-decoration: none;
}

/* Elegant Template */
.lopta-card-elegant {
    padding: 0;
}

.lopta-card-elegant-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 2px solid;
}

.lopta-card-elegant .lopta-card-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.lopta-card-elegant .lopta-card-name {
    margin: 0 0 5px;
    font-size: 20px;
}

.lopta-card-elegant .lopta-card-title {
    margin: 0;
    font-size: 14px;
}

.lopta-card-services {
    padding: 15px 20px;
}

.lopta-card-services h4 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lopta-card-services ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lopta-card-services li {
    padding: 5px 0;
    font-size: 14px;
}

.lopta-card-services li::before {
    content: "• ";
}

.lopta-card-elegant .lopta-card-bio {
    padding: 0 20px 15px;
    margin: 0;
    font-size: 14px;
}

.lopta-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.lopta-card-elegant-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .lopta-booking-container {
        padding: 15px;
    }
    
    .lopta-practitioner-info {
        padding: 15px;
    }
    
    .lopta-services-grid {
        grid-template-columns: 1fr;
    }
    
    .lopta-form-row {
        flex-direction: column;
    }
    
    .lopta-form-group {
        min-width: 100%;
    }
    
    .lopta-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lopta-card-minimal {
        flex-direction: column;
        text-align: center;
    }
}
