/* GTP Bookings Public Styles */

.gtp-booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.gtp-booking-form {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.gtp-booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2, #0073aa);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gtp-form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.gtp-form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.gtp-form-step h3 {
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0073aa;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
}

.gtp-form-step h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00a0d2, #0073aa);
    border-radius: 2px;
}

.gtp-form-group {
    margin-bottom: 24px;
}

.gtp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gtp-form-group input,
.gtp-form-group select,
.gtp-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-family: inherit;
}

.gtp-form-group input:focus,
.gtp-form-group select:focus,
.gtp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,115,170,0.1);
    transform: translateY(-1px);
}

.gtp-form-group input:hover:not(:focus),
.gtp-form-group select:hover:not(:focus),
.gtp-form-group textarea:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #fff;
}

/* Custom Test Selection Styling */
.test-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.test-checkbox {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.test-checkbox:hover {
    border-color: #0073aa;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}

.test-checkbox input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: #0073aa;
    flex-shrink: 0;
}

.test-checkbox input[type="checkbox"]:checked + .test-info {
    color: #0073aa;
}

.test-info {
    flex: 1;
}

.test-info strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
}

.test-info small {
    color: #64748b;
    line-height: 1.4;
}

/* Time Slots */
.gtp-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gtp-time-slot {
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.gtp-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,115,170,0.1), transparent);
    transition: left 0.5s ease;
}

.gtp-time-slot:hover::before {
    left: 100%;
}

.gtp-time-slot:hover {
    border-color: #0073aa;
    background: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0,115,170,0.2);
}

.gtp-time-slot.selected {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,115,170,0.3);
}

.gtp-time-slot.unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
    opacity: 0.6;
}

/* Buttons */
.gtp-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.gtp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.gtp-btn:hover::before {
    left: 100%;
}

.gtp-btn-primary {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.gtp-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #005177, #0073aa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,0.4);
}

.gtp-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

.gtp-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.gtp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.gtp-form-actions {
    margin-top: 40px;
    text-align: right;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.gtp-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.gtp-progress-step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.gtp-progress-step.active {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,115,170,0.3);
}

.gtp-progress-step.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    transform: scale(1.05);
}

.gtp-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 24px;
    height: 3px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.gtp-progress-step.completed:not(:last-child)::after {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Enhanced Notices */
.notice {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.notice-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.notice-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.notice-success {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

/* Booking Summary */
.gtp-booking-summary {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gtp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.gtp-summary-row:last-child {
    border-bottom: none;
}

.gtp-summary-label {
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.gtp-summary-value {
    color: #1e293b;
    font-weight: 500;
}

/* Success Message */
.gtp-success-message {
    text-align: center;
    padding: 60px 20px;
}

.gtp-success-message h3 {
    color: #10b981;
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading */
.gtp-loading {
    text-align: center;
    padding: 60px 20px;
}

.gtp-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Company Information */
.gtp-company-info {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.gtp-company-info h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gtp-company-info p {
    margin: 6px 0;
    color: #64748b;
}

/* Access Denied */
.gtp-access-denied {
    text-align: center;
    padding: 60px 20px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
}

.gtp-access-denied h3 {
    color: #dc2626;
    margin-bottom: 16px;
}

/* Notification System */
.gtp-notification {
    position: relative;
    padding: 16px 50px 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gtp-notification-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
}

.gtp-notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #065f46;
}

.gtp-notification-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
}

.gtp-notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
}

.gtp-notification p {
    margin: 0;
    font-weight: 500;
}

.gtp-notification-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gtp-notification-close:hover {
    opacity: 1;
}

/* Enhanced Service Info Cards */
.service-info-card,
.assessor-card {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.service-info-card h5 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 16px;
}

.test-list {
    margin: 12px 0;
    padding-left: 20px;
}

.test-list li {
    margin-bottom: 6px;
    color: #64748b;
}

.service-details,
.assessor-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.detail-item .label {
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    color: #1e293b;
    font-weight: 500;
}

/* Loading States */
.gtp-loading-slots {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.gtp-loading-slots .gtp-spinner {
    margin: 0 auto 16px;
}

.no-slots-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.error-message {
    color: #dc2626;
}

/* Summary Items */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Confirmation Details */
.gtp-booking-confirmation {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.confirmation-details {
    display: grid;
    gap: 12px;
}

.confirmation-details .detail-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid #a7f3d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gtp-booking-form-container {
        padding: 16px;
    }
    
    .gtp-booking-form {
        padding: 24px;
        border-radius: 8px;
    }
    
    .test-checkboxes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gtp-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gtp-progress-bar {
        gap: 16px;
        padding: 16px;
    }
    
    .gtp-progress-step {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .gtp-progress-step:not(:last-child)::after {
        width: 16px;
    }
    
    .gtp-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .gtp-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .gtp-form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .gtp-form-actions .gtp-btn {
        width: 100%;
        margin-right: 0;
    }
}

/* User Info Header Styles */
.gtp-user-info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gtp-user-welcome .gtp-user-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
}

.gtp-user-welcome .gtp-user-company {
    display: block;
    color: #6c757d;
    font-size: 14px;
}

.gtp-header-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gtp-appointments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40,167,69,0.2);
}

.gtp-appointments-link:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

.gtp-appointments-link .dashicons {
    font-size: 16px;
    line-height: 1;
}

.gtp-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,115,170,0.2);
}

.gtp-admin-link:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.gtp-admin-link .dashicons {
    font-size: 16px;
    line-height: 1;
}

/* Access Denied Styling Improvements */
.gtp-access-denied {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    text-align: center;
}

.gtp-admin-access-notice {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.gtp-admin-dashboard-link {
    margin: 20px 0;
    text-align: center;
}

.gtp-admin-dashboard-link .gtp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.gtp-admin-dashboard-link .dashicons {
    font-size: 18px;
    line-height: 1;
}

.gtp-login-links {
    margin-top: 20px;
}

.gtp-login-links .gtp-btn {
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gtp-header-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .gtp-user-info-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gtp-header-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .gtp-appointments-link,
    .gtp-admin-link {
        width: 100%;
        justify-content: center;
    }
    
    .gtp-admin-access-notice {
        text-align: center;
    }
}