/* Impulse CPR Scheduler - Frontend Styles */

/* Reset and Container */
.icpr-schedules-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.icpr-schedules-container * {
    box-sizing: border-box;
}

/* Header */
.icpr-schedules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 15px;
}

.icpr-schedules-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
}

.icpr-filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

/* Date Group */
.icpr-schedule-date-group {
    margin-bottom: 30px;
}

.icpr-schedule-date-header {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 3px solid #38A41C;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icpr-schedule-date-header .next-week {
    background: #38A41C;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Schedule Card */
.icpr-schedule-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.icpr-schedule-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Card Image */
.icpr-card-image {
    width: 200px;
    min-width: 200px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.icpr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icpr-card-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.icpr-card-image-placeholder .icpr-card-type-label {
    background: #38A41C;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.icpr-card-image-placeholder h4 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

.icpr-card-image-placeholder p {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

.icpr-card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #38A41C;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Card Content */
.icpr-card-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icpr-card-time {
    display: inline-block;
    background: #fef2f2;
    color: #38A41C;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.icpr-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.icpr-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.icpr-card-meta span {
    font-size: 13px;
    color: #666;
}

/* Description */
.icpr-card-description-wrapper {
    margin-top: 5px;
}

.icpr-card-description {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.icpr-card-description .highlight {
    color: #38A41C;
    font-weight: 600;
}

.icpr-show-more-btn {
    display: inline-block;
    margin-top: 8px;
    color: #38A41C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.icpr-show-more-btn:hover {
    text-decoration: underline;
}

/* Card Action */
.icpr-card-action {
    width: 160px;
    min-width: 160px;
    padding: 25px 20px;
    background: #f9f9f9;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.icpr-price-tag .price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.icpr-price-tag .label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.icpr-spots-left {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

.icpr-spots-left.full {
    color: #38A41C;
}

/* Button */
.icpr-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.icpr-btn-primary {
    background: #38A41C;
    color: #fff !important;
}

.icpr-btn-primary:hover {
    background: #2d8a16;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Modal */
.icpr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 999999;
    padding: 30px 15px;
    overflow-y: auto;
}

.icpr-modal-overlay.active {
    display: flex;
}

.icpr-modal {
    background: #fff;
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    position: relative;
    animation: icprModalIn 0.3s ease;
}

@keyframes icprModalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.icpr-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icpr-modal-header h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
}

.icpr-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.icpr-modal-close:hover {
    background: #38A41C;
    color: #fff;
}

.icpr-modal-body {
    padding: 22px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Booking Steps */
.icpr-booking-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.icpr-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #888;
}

.icpr-step.active {
    background: #38A41C;
    color: #fff;
}

.icpr-step.completed {
    background: #22c55e;
    color: #fff;
}

.icpr-step-number {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Selected Class */
.icpr-selected-class {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.icpr-selected-class-image {
    width: 80px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.icpr-selected-class-image h4 {
    font-size: 14px !important;
    margin: 0 !important;
    color: #fff !important;
    text-align: center;
}

.icpr-selected-class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.icpr-selected-class-details h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    color: #1a1a1a !important;
}

.icpr-selected-class-details p {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 0 4px 0 !important;
}

.icpr-selected-class-details .description {
    font-size: 11px !important;
    color: #888 !important;
    line-height: 1.4 !important;
}

/* Form Styles */
.icpr-form-section {
    margin-bottom: 22px;
}

.icpr-form-section h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 15px 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icpr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.icpr-form-group {
    margin-bottom: 12px;
}

.icpr-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.icpr-form-group label span {
    color: #38A41C;
}

.icpr-form-group input,
.icpr-form-group textarea,
.icpr-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.icpr-form-group input:focus,
.icpr-form-group textarea:focus,
.icpr-form-group select:focus {
    outline: none;
    border-color: #38A41C;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.icpr-form-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Add-ons */
.icpr-addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
}

.icpr-addon-item:hover {
    background: #f0f0f0;
}

.icpr-addon-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.icpr-addon-item label {
    flex: 1;
    font-size: 13px;
    cursor: pointer;
}

.icpr-addon-price {
    font-weight: 600;
    color: #38A41C;
    font-size: 13px;
}

/* Terms */
.icpr-terms-section h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    color: #1a1a1a !important;
}

.icpr-terms-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.icpr-terms-content h4 {
    font-size: 13px !important;
    color: #1a1a1a !important;
    margin: 12px 0 6px 0 !important;
}

.icpr-terms-content h4:first-child {
    margin-top: 0 !important;
}

.icpr-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.icpr-terms-checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.icpr-terms-checkbox label {
    font-size: 13px;
    cursor: pointer;
}

.icpr-bls-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-top: 15px;
}

.icpr-bls-notice input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.icpr-bls-notice label {
    font-size: 12px;
    color: #555;
}

/* Checkout */
.icpr-checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.icpr-payment-section h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 15px 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icpr-order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.icpr-order-summary h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #1a1a1a !important;
}

.icpr-order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}

.icpr-order-item:last-of-type {
    border-bottom: none;
}

.icpr-order-item.total {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #38A41C;
    border-bottom: none;
}

/* Loading */
.icpr-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.icpr-loading.active {
    display: block;
}

.icpr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e5e5;
    border-top-color: #38A41C;
    border-radius: 50%;
    animation: icprSpin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes icprSpin {
    to { transform: rotate(360deg); }
}

/* Success */
.icpr-success-message {
    text-align: center;
    padding: 40px;
}

.icpr-success-icon {
    width: 70px;
    height: 70px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
}

.icpr-success-message h3 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
    color: #1a1a1a !important;
}

.icpr-success-message p {
    color: #666;
    margin-bottom: 20px;
}

/* Powered By */
.icpr-powered-by {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .icpr-schedule-card {
        flex-direction: column;
    }
    
    .icpr-card-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
        min-height: 180px;
    }
    
    .icpr-card-action {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }
    
    .icpr-checkout-container {
        grid-template-columns: 1fr;
    }
    
    .icpr-form-row {
        grid-template-columns: 1fr;
    }
    
    .icpr-selected-class {
        flex-direction: column;
    }
    
    .icpr-selected-class-image {
        width: 100%;
        height: 100px;
    }
}
