/* ===================================
   1:1 Consulting Plugin - Frontend Styles
   =================================== */

/* Grid Layout */
.oto-consulting-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.oto-consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Styles */
.oto-consulting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oto-consulting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.oto-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.oto-card-image img {
    width: 100%;
    /*height: 100%;*/
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.oto-consulting-card:hover .oto-card-image img {
    transform: scale(1.05);
}

.oto-card-content {
    padding: 25px;
}

.oto-card-title {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 600;
}

.oto-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oto-card-title a:hover {
    color: #4CAF50;
}

.oto-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.oto-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.oto-card-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.oto-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.oto-card-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.oto-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.oto-btn-primary {
   /* background-color: #4CAF50;*/
    background-color: #118040;
    color: #fff;
}

.oto-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.oto-btn-secondary {
    background-color: #fff;
    color: #4CAF50;
    border: 2px solid #118040;
}

.oto-btn-secondary:hover {
    background-color: #118040;
    color: #fff;
}

.oto-btn-block {
    width: 100%;
    display: block;
}

/* Pagination */
.oto-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.oto-pagination a,
.oto-pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.oto-pagination a:hover,
.oto-pagination span.current {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* Single Consulting Layout */
.oto-consulting-single {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.oto-single-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.oto-single-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.oto-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.oto-single-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.oto-single-info h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.oto-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.oto-info-item:last-child {
    border-bottom: none;
}

.oto-info-label {
    font-weight: 600;
    color: #666;
}

.oto-info-value {
    color: #333;
}

.oto-single-content h1 {
    margin: 0 0 20px;
    font-size: 32px;
    color: #333;
}

.oto-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Booking Modal */
.oto-booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.oto-booking-modal-overlay.oto-modal-active {
    opacity: 1;
    visibility: visible;
}

.oto-booking-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.oto-booking-modal-overlay.oto-modal-active .oto-booking-modal {
    transform: scale(1);
}

.oto-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.oto-modal-close:hover {
    color: #333;
}

.oto-modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.oto-modal-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.oto-modal-header p {
    margin: 0;
    opacity: 0.9;
}

.oto-modal-body {
    padding: 30px;
}

.oto-modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Step Progress */
.oto-step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.oto-step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.oto-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.oto-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.oto-step-label {
    display: block;
    font-size: 14px;
    color: #999;
    transition: color 0.3s ease;
}

.oto-step-active .oto-step-number,
.oto-step-completed .oto-step-number {
    background: #4CAF50;
    color: #fff;
}

.oto-step-active .oto-step-label,
.oto-step-completed .oto-step-label {
    color: #4CAF50;
    font-weight: 600;
}

/* Step Content */
.oto-step-content {
    display: none;
}

.oto-step-content-active {
    display: block;
    animation: otoFadeIn 0.3s ease;
}

@keyframes otoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar */
.oto-calendar-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.oto-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.oto-calendar-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.oto-calendar-nav {
    background: #4CAF50;
    color: #fff;
    border: none;
    width: 35px;
    /*height: 35px;*/
    height:auto;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.oto-calendar-nav:hover {
    background: #45a049;
}

.oto-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.oto-calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

.oto-calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.oto-calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.oto-calendar-date:hover:not(.oto-date-disabled):not(.oto-date-selected) {
    background: #e8f5e9;
}

.oto-calendar-date.oto-date-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.oto-calendar-date.oto-date-today {
    border: 2px solid #4CAF50;
}

.oto-calendar-date.oto-date-selected {
    background: #4CAF50;
    color: #fff;
}

.oto-calendar-date.oto-date-other-month {
    color: #ccc;
}

/* Time Slots */
.oto-time-slots-wrapper h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.oto-time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.oto-time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.oto-time-slot:hover:not(.oto-slot-booked) {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.oto-time-slot.oto-slot-selected {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.oto-time-slot.oto-slot-booked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.oto-select-date-first {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 20px;
}

/* User Form */
.oto-user-form {
    max-width: 600px;
    margin: 0 auto;
}

.oto-form-group {
    margin-bottom: 20px;
}

.oto-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #f44336;
}

.oto-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.oto-form-control:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Confirmation */
.oto-confirmation-success {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.oto-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.oto-confirmation-success h3 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}

.oto-booking-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.oto-booking-summary h4 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.oto-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.oto-summary-item:last-child {
    border-bottom: none;
}

.oto-confirmation-note {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .oto-consulting-grid {
        grid-template-columns: 1fr;
    }
    
    .oto-consulting-single {
        grid-template-columns: 1fr;
    }
    
    .oto-card-actions {
        flex-direction: column;
    }
    
    .oto-booking-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .oto-modal-body {
        padding: 20px;
    }
    
    .oto-step-label {
        font-size: 12px;
    }
    
    .oto-calendar-dates {
        gap: 3px;
    }
}

/* No Results */
.oto-no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}