* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-align: left;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-right: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f4ff;
    color: #2563eb;
}

.nav-link.active {
    background: #2563eb;
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-greeting {
    font-weight: 600;
    color: #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2563eb;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu .nav-link {
        width: 100%;
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu .nav-user {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid #f0f0f0;
    }
    
    .nav-menu .nav-user .btn-small {
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu .nav-user #user-greeting {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

.btn-small {
    padding: 0 20px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 50px;
    border: 2px solid #2563eb;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-small:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

/* Login and Logout buttons have solid background */
#login-btn,
#logout-btn {
    background: #2563eb;
    color: white;
}

#login-btn:hover,
#logout-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Pricing Section Styles */
.pricing-section {
    padding: 0;
    background: #f8f9fa;
}

.pricing-hero {
    background: #2563eb;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.pricing-hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.pricing-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 60px 20px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border: 3px solid #2563eb;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.pricing-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}

.pricing-currency {
    font-size: 24px;
    vertical-align: top;
}

.pricing-period {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.pricing-note {
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 6px;
}

/* Referrals styling */
.referrals-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
}

.referral-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.referral-item:last-child {
    margin-bottom: 0;
}

.referral-item h4 {
    margin: 0 0 15px 0;
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
}

/* Location autocomplete suggestions */
.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

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

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: block;
}

/* Freelancer table styles */
.freelancers-grid {
    margin: 20px auto;
    overflow-x: auto;
    max-width: 1600px;
    padding: 0 20px;
}

.freelancers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.freelancers-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.freelancers-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.freelancer-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.freelancer-row:hover,
.freelancer-row.hovered {
    background-color: #f8fafc;
}

.freelancer-row:last-child td {
    border-bottom: none;
}

.photo-cell {
    width: 80px;
    text-align: center;
}

.freelancer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.name-cell {
    min-width: 150px;
}

.freelancer-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.rating-cell {
    min-width: 120px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.experience-cell {
    min-width: 100px;
    color: #374151;
    font-weight: 500;
}

.gender-cell {
    min-width: 100px;
    color: #374151;
}

.action-cell {
    width: 100px;
    text-align: center;
}

.select-freelancer-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-freelancer-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .freelancers-table {
        font-size: 14px;
    }
    
    .freelancers-table th,
    .freelancers-table td {
        padding: 8px 12px;
    }
    
    .freelancer-photo {
        width: 40px;
        height: 40px;
    }
    
    .photo-cell {
        width: 60px;
    }
    
    .name-cell {
        min-width: 120px;
    }
    
    .rating-cell {
        min-width: 100px;
    }
    
    .experience-cell,
    .gender-cell {
        min-width: 80px;
    }
    
    .select-freelancer-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}

/* Time slot booking status styles - Green/Blue/Grey theme */
.time-slot-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

/* Available slots - GREEN */
.time-slot-card.available {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.time-slot-card.available:hover {
    border-color: #059669;
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
}

.time-slot-card.available.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #047857;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Booked slots - BLUE */
.time-slot-card.booked {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    cursor: not-allowed;
}

.time-slot-card.booked:hover {
    border-color: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Unavailable slots - GREY */
.time-slot-card.unavailable {
    border-color: #9ca3af;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    opacity: 0.6;
    cursor: not-allowed;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-icon {
    font-size: 20px;
    color: #10b981;
}

.time-slot-card.booked .calendar-icon {
    color: #2563eb;
}

.time-slot-card.unavailable .calendar-icon {
    color: #9ca3af;
}

.time-slot-card.available.selected .calendar-icon {
    color: white;
}

.slot-status {
    font-size: 16px;
}

.slot-date {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.time-slot-card.available.selected .slot-date {
    color: rgba(255, 255, 255, 0.9);
}

.slot-time {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.time-slot-card.available.selected .slot-time {
    color: white;
}

.booking-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-slot-card.available .booking-status {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.time-slot-card.booked .booking-status {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.time-slot-card.unavailable .booking-status {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.time-slot-card.available.selected .booking-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Phone input with country code selector */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.country-code-select {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    min-width: 90px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.country-code-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-input-group input[type="tel"],
.phone-input-group input[type="text"] {
    flex: 1;
    min-width: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

.btn-pricing {
    background: #2563eb;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.btn-pricing:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-amount {
        font-size: 36px;
    }
}

/* Modal Styles - Old styles removed, using flexbox centering below */

.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.switch-auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

.booking-note {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Booking Steps */
.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 12px;
    }
}

/* Booking Summary Styles */
.booking-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.booking-summary h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-details {
    display: grid;
    gap: 12px;
}

.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 .label {
    font-weight: 600;
    color: #64748b;
}

.summary-item .value {
    font-weight: 600;
    color: #1e293b;
}

.summary-item.pricing {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.summary-item.pricing .value.amount {
    color: #059669;
    font-size: 1.2rem;
    align-self: flex-end;
}

.pricing-note {
    font-size: 0.8rem;
    color: #059669;
    font-style: italic;
    width: 100%;
    text-align: left;
    margin-top: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

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

.modal-header {
    padding: 25px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.close {
    color: #64748b;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 25px;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #login-modal .form-group {
        margin-bottom: 15px;
    }
    
    #login-modal .btn {
        padding: 12px !important;
    }
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 25px;
}

.benefits-section h4 {
    color: #1e293b;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
}

/* Modal Actions */
.modal-actions {
    display: grid;
    gap: 12px;
}

/* Hero CTA Buttons */
.hero .btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
    height: 50px;
    padding: 0 40px;
    font-size: 1.1rem;
}

.hero .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    height: 50px;
    padding: 0 40px;
    font-size: 1.1rem;
}

.hero .btn-secondary:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #1e293b !important;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #2563eb;
    background: #f8fafc;
    color: #1e293b !important;
}

/* Payment Modal Styles */
.payment-modal .modal-content {
    max-width: 450px;
}

.payment-summary-mini {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row .amount {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Simple Payment Instruction */
.simple-payment-instruction {
    padding: 0;
}

.payment-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.payment-card h4 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.payment-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row .label {
    font-weight: 600;
    color: #64748b;
}

.detail-row .value {
    font-weight: 700;
    color: #1e293b;
}

.recipient-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.detail-row .phone-number {
    font-size: 1.2rem;
    color: #2563eb;
    font-family: monospace;
    font-weight: 700;
}

.recipient-name {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.detail-row .amount {
    font-size: 1.3rem;
    color: #059669;
}

/* Payment Structure Info */
.payment-structure-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.fee-breakdown h5 {
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #78350f;
    font-size: 0.9rem;
}

.fee-item span:first-child {
    font-weight: 500;
}

.fee-item span:last-child {
    font-weight: 600;
    color: #92400e;
}

.payment-note-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f59e0b;
}

.payment-note-info p {
    margin: 0;
    color: #78350f;
    font-size: 0.85rem;
    line-height: 1.4;
}

.payment-note-info strong {
    color: #92400e;
}

.payment-instruction-simple {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.payment-instruction-simple p {
    margin: 8px 0;
    color: #475569;
    font-size: 1rem;
}

.payment-instruction-simple p:first-child {
    color: #1e293b;
    font-size: 1.1rem;
}

.payment-instruction-simple strong {
    color: #2563eb;
}

.confirm-payment-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.confirm-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Calendar Availability */
.calendar-availability {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
}

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

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.available-days-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.available-day-item {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.available-day-item:last-child {
    border-bottom: none;
}

.available-day-item:hover {
    background: #f8fafc;
}

.available-day-item.expanded {
    background: #eff6ff;
}

.day-header-clickable {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    min-width: 100px;
}

.day-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.day-count {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.expand-icon {
    color: #9ca3af;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.available-day-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.day-time-slots {
    display: none;
    padding: 0 25px 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.available-day-item.expanded .day-time-slots {
    display: block;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.time-slot-card.selected {
    border-color: #2563eb;
    background: #dbeafe;
}

.slot-time {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 8px;
}

.slot-availability {
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
}

.slot-freelancer-count {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Selected Freelancer Header */
.selected-freelancer-header {
    padding: 15px 0;
    margin-bottom: 15px;
}

.back-btn {
    background: #e5e7eb;
    border: none;
    color: #374151;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background: #d1d5db;
    color: #1f2937;
}

.freelancer-info-section {
    background: #f0f4ff;
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.freelancer-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
    flex-shrink: 0;
}

.freelancer-info-text h3 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.freelancer-info-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
}

.freelancer-info-compact p {
    margin: 2px 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Service Selection Info */
.service-info {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.duration-badge, .price-badge {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.duration-badge {
    color: #2563eb;
    border-color: #dbeafe;
    background: #eff6ff;
}

.price-badge {
    color: #059669;
    border-color: #d1fae5;
    background: #ecfdf5;
}

/* Portfolio Button and Modal */
.portfolio-btn-container {
    margin-top: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.portfolio-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 95%;
    max-height: 95vh;
    width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.portfolio-header h3 {
    margin: 0;
    color: #1f2937;
}

.close-portfolio {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-portfolio:hover {
    color: #1f2937;
}

.portfolio-gallery {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Freelancer Details Modal */
.freelancer-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.freelancer-details-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.freelancer-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.freelancer-details-header h3 {
    margin: 0;
    color: #1f2937;
}

.close-freelancer-details {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-freelancer-details:hover {
    color: #1f2937;
}

.freelancer-details-body {
    padding: 20px;
}

.freelancer-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.freelancer-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.freelancer-text-info h4 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.freelancer-rating,
.freelancer-experience,
.freelancer-specialty {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.freelancer-bio {
    margin-top: 10px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.4;
}

.appointment-details {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.appointment-details h5 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.appointment-info div {
    margin-bottom: 5px;
    color: #4b5563;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 0 30px;
    height: 40px;
    border-radius: 50px;
    border: 2px solid #2563eb;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Slot freelancer info styling */
.slot-freelancer-info {
    text-align: center;
}

.slot-freelancer-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.slot-freelancer-rating {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Portfolio preview section in freelancer details modal */
.portfolio-preview-section {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.portfolio-preview-section .portfolio-btn-container {
    display: flex;
    justify-content: center;
}

.portfolio-preview-section .btn {
    min-width: 140px;
}

/* Multi-slot indicator */
.multi-slot-indicator {
    display: block;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 500;
    margin-top: 2px;
}

/* Payment status spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced time slot cards for multi-slot bookings */
.time-slot-card[data-multi-slot="true"] {
    border-left: 4px solid #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.time-slot-card[data-multi-slot="true"]:hover {
    border-left-color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe 0%, #f8fafc 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-modal-content {
        max-width: 95%;
        max-height: 90vh;
        width: 95%;
        margin: 20px;
    }
    
    .portfolio-gallery {
        padding: 15px;
    }
}

/* Compact Payment Methods */
.payment-methods-compact {
    display: grid;
    gap: 12px;
}

.payment-method-compact {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.payment-method-compact:hover {
    border-color: #2563eb;
}

.method-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
}

.payment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.method-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
}

.method-logo.mtn {
    background: #ffcc00;
    color: #000;
}

.method-logo.airtel {
    background: #ed1c24;
}

.method-logo.zamtel {
    background: #00a651;
}

.pay-btn-compact {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.pay-btn-compact:hover {
    transform: scale(1.05);
}

.manual-steps-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.manual-steps-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.toggle-icon {
    color: #64748b;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.method-steps {
    padding: 0 15px 15px 15px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.method-steps p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #374151;
}

.method-steps ol {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.method-steps li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.method-steps code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.payment-note {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #f59e0b;
}

.payment-note p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .method-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pay-btn-compact {
        width: 100%;
    }
}

.booking-form {
    max-width: 1000px;
    margin: 0 auto;
}

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

/* Two-column layout for location and people fields on desktop */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-form {
        max-width: 100%;
    }
}

.btn-full-width {
    width: 100%;
    margin-top: 10px;
}

/* Location Autocomplete */
.location-autocomplete {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    /* Remove display: none so suggestions can show */
}

.autocomplete-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background-color: #f8f9fa;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

/* Booking Method Selection */
.booking-method-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.booking-method-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.booking-method-btn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.booking-method-btn h4 {
    margin: 10px 0;
    color: #2563eb;
    font-size: 1.2rem;
}

.booking-method-btn p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .booking-method-selection {
        grid-template-columns: 1fr;
    }
}

.booking-step {
    margin-bottom: 40px;
}

.booking-step h3 {
    color: #2563eb;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.freelancer-card-old {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.freelancer-card-old:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.freelancer-card-old img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.freelancer-card-old h4 {
    margin: 10px 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.freelancer-card-old .rating {
    color: #ffc107;
    font-size: 1.1rem;
    margin: 5px 0;
}

.freelancer-card-old .experience {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.freelancer-card-old .location {
    color: #999;
    font-size: 0.85rem;
    margin: 5px 0;
}

.freelancer-card-old .specialty {
    background: #2563eb;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 10px;
}

.selected-freelancer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.selected-freelancer-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-freelancer-info h4 {
    margin: 0 0 5px 0;
    color: #2563eb;
}

.selected-freelancer-info p {
    margin: 0;
    color: #666;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.time-slot-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.time-slot-card.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.time-slot-card .date {
    font-weight: 600;
    margin-bottom: 5px;
}

.time-slot-card .time {
    font-size: 0.9rem;
    color: #666;
}

.time-slot-card.selected .time {
    color: white;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    color: #2563eb;
}

.booking-summary p {
    margin: 8px 0;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../images/barber.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 20px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    transition: background-image 1s ease-in-out;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 80px 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}


.btn-outline-primary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #2563eb;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: #2563eb;
    color: #fff;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #2563eb;
    transform: scale(1.2);
}

/* Form Sections */
.form-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.form-section.alt-bg {
    background: #fff;
}

.form-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.custom-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-section.alt-bg .custom-form {
    background: #f8f9fa;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #2563eb;
}

.form-group select[multiple] {
    height: auto;
    min-height: 150px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Service Accordion Styles */
.service-accordion {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header.active {
    background: #f0f4ff;
    color: #2563eb;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    background: #fafbfc;
}

.accordion-content.active {
    max-height: 10000px;
    overflow-y: auto;
}

.service-options {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-option {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 3px solid transparent;
    user-select: none;
}

.service-option.has-multiple-images {
    cursor: grab;
}

.service-option.has-multiple-images:active {
    cursor: grabbing;
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.service-option-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-option-image.active {
    opacity: 1;
    pointer-events: auto;
}

.service-image-dots {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.service-image-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.service-image-dots .dot.active {
    background: white;
    width: 20px;
    border-radius: 3px;
}

.service-option:hover {
    transform: scale(1.05);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.service-option.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: scale(0.98);
}

.service-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.service-option-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    font-weight: 600;
    color: white;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.service-option-price {
    color: #2563eb;
    font-weight: 600;
}

/* Tablet: 4 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .service-option-name {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* Mobile: 3 columns, taller cards */
@media (max-width: 768px) {
    .service-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 8px;
    }
    
    .service-option {
        aspect-ratio: 3/4;
        border-radius: 6px;
    }
    
    .service-option-name {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    .accordion-content {
        background: #fff;
    }
    
    .accordion-header {
        padding: 14px 12px;
    }
    
    .service-accordion {
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .service-option.selected::after {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: 6px;
        right: 6px;
    }
    
    .service-image-dots {
        top: 6px;
        gap: 4px;
    }
    
    .service-image-dots .dot {
        width: 5px;
        height: 5px;
    }
    
    .service-image-dots .dot.active {
        width: 16px;
    }
}

/* Freelancer Cards Grid */
.freelancers-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.freelancer-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    min-height: 400px;
    overflow: visible;
}

.freelancer-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.freelancer-card-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.freelancer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #e0e7ff;
}

.freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.freelancer-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.freelancer-card-name {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.freelancer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.freelancer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #2563eb;
    color: #2563eb;
}

.btn-portfolio {
    background: #f0f4ff;
    border-color: #2563eb;
    color: #2563eb;
}

.btn-portfolio:hover {
    background: #2563eb;
    color: white;
}

.btn-social svg {
    width: 16px;
    height: 16px;
}

.freelancer-card-price {
    padding: 16px !important;
    background: #f0fdf4 !important;
    border: 3px solid #16a34a !important;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.freelancer-card-price strong {
    font-size: 2rem !important;
    color: #16a34a !important;
    font-weight: 700 !important;
    display: block !important;
    visibility: visible !important;
    line-height: 1.2 !important;
}

/* Tablet: 1 column centered */
@media (max-width: 900px) {
    .freelancers-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .freelancers-grid {
        padding: 0 12px;
    }
    
    .freelancers-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 0;
        max-width: 500px;
    }
    
    .freelancer-card {
        max-width: 100%;
    }
    
    .freelancer-avatar {
        width: 80px;
        height: 80px;
    }
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.pricing-item label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin: 0;
}

.pricing-item small {
    color: #64748b;
    font-size: 0.85rem;
}

.pricing-item input[type="number"] {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pricing-item input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* File Preview Grid */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.file-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.file-preview-item .remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.file-preview-item .file-name {
    padding: 8px;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 1.1rem;
}

/* Dashboard Styles */
.dashboard-section {
    padding: 40px 20px;
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    margin: 0;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-user-info span {
    font-weight: 600;
    color: #2563eb;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #2563eb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Calendar Styles */
.availability-calendar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.calendar-grid {
    overflow-x: auto;
}

.calendar-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.calendar-header-row {
    font-weight: bold;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-cell {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    min-width: 100px;
}

.time-cell {
    background: #f8f9fa;
    font-weight: 500;
}

.slot-cell {
    cursor: pointer;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.slot-cell:hover {
    background: #e0e0e0;
}

.slot-cell.available {
    background: #e8f5e9;
}

.slot-cell.available:hover {
    background: #c8e6c9;
}

.slot-status {
    font-size: 0.85rem;
    color: #757575;
}

.slot-cell.available .slot-status {
    color: #2e7d32;
    font-weight: 600;
}

/* Services & Locations */
.form-section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-section-half {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section-half h4 {
    margin-bottom: 20px;
    color: #2563eb;
}

.form-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-group + .btn {
    margin-top: 25px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-item .btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-item .btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.current-image {
    margin-bottom: 15px;
}

.current-image img {
    border: 2px solid #e0e0e0;
}

/* Booking History Modal */
.booking-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.booking-item.pending {
    border-color: #ffa500;
    background: #fff8e1;
}

.booking-item.completed {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.booking-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-title strong {
    font-size: 1.1em;
    color: #333;
}

.booking-title small {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status.pending {
    background: #ffa500;
    color: white;
}

.status.completed {
    background: #4CAF50;
    color: white;
}

.booking-details p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.booking-actions {
    margin-top: 10px;
    text-align: right;
}

.no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-bookings a {
    color: #007bff;
    text-decoration: none;
}

.loading, .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #dc3545;
}

/* Pending Booking Notification */
.pending-booking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff8e1;
    border: 2px solid #ffa500;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    max-width: 300px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
    margin-left: auto;
}

.close-notification:hover {
    color: #333;
}

/* Login Section in Booking History */
.no-bookings-with-login {
    padding: 20px;
    text-align: center;
}

.no-bookings-message {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.no-bookings-message h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-bookings-message ul {
    text-align: left;
    display: inline-block;
    margin: 10px 0;
}

.no-bookings-message li {
    margin: 5px 0;
    color: #666;
}

.login-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    max-width: 400px;
    margin: 0 auto;
}

.login-section h4 {
    margin-bottom: 20px;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .form-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.login-help {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.login-help a {
    color: #007bff;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .form-section-split {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .calendar-row {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .calendar-cell {
        min-width: 80px;
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
    }
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    white-space: pre-line;
    line-height: 1.6;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Validation Warnings */
.validation-warning {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-images {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .custom-form {
        padding: 30px 20px;
    }
    
    .form-section {
        padding: 60px 12px;
    }
    
    .form-section h2 {
        font-size: 2rem;
    }
}

/* ============ FREELANCER DASHBOARD STYLES ============ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.bookings-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.booking-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #ff6b6b;
}

.booking-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.slot-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.slot-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.slot-card.available {
    border-color: #10b981;
}

.slot-card.booked {
    border-color: #ef4444;
    background: #fef2f2;
}

.slot-card.unavailable {
    border-color: #6b7280;
    background: #f9fafb;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slot-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.slot-status.available {
    background: #d1fae5;
    color: #065f46;
}

.slot-status.booked {
    background: #fee2e2;
    color: #991b1b;
}

.slot-status.unavailable {
    background: #f3f4f6;
    color: #374151;
}

.slot-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ WEEKLY CALENDAR STYLES ============ */

.calendar-container {
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.calendar-header h4 {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

.calendar-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.calendar-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.calendar-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-row {
    display: table-row;
}

.calendar-cell {
    display: table-cell;
    padding: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
    min-width: 80px;
    min-height: 35px;
}

.calendar-header-row .calendar-cell {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.time-header {
    background: #f9fafb !important;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
}

.day-header {
    background: #f3f4f6 !important;
    font-weight: 600;
    color: #374151;
}

.time-slot {
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none; /* Prevent scrolling while dragging on mobile */
}

.time-slot.available {
    background: #dcfce7;
    color: #166534;
    border-color: #16a34a;
}

.time-slot.available:hover {
    background: #bbf7d0;
    transform: scale(1.05);
}

.time-slot.unavailable {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

.time-slot.unavailable:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.time-slot.booked {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
    cursor: not-allowed;
}

.time-slot.booked:hover {
    background: #fde68a;
    transform: none; /* Don't scale booked slots */
}

.time-slot.past {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.past:hover {
    transform: none; /* Don't scale past slots */
}

/* Drag-to-select visual feedback */
.calendar-grid.dragging {
    cursor: grabbing !important;
}

.calendar-grid.dragging .time-slot:not(.booked) {
    cursor: grabbing !important;
}

.time-slot.drag-highlight {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

/* Mobile responsiveness for calendar */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .calendar-header h4 {
        font-size: 1rem;
        text-align: center;
    }
    
    .calendar-container {
        overflow-x: visible;
    }
    
    /* Hide table view on mobile */
    .calendar-grid {
        display: none;
    }
    
    /* Show accordion view on mobile */
    .calendar-accordion {
        display: block !important;
    }
    
    .booking-details {
        grid-template-columns: 1fr;
    }
    
    .slots-grid {
        grid-template-columns: 1fr;
    }
    
    .slot-controls {
        flex-direction: column;
    }
    
    .booking-filters {
        justify-content: center;
    }
}

/* Calendar Accordion for Mobile */
.calendar-accordion {
    display: block; /* Temporarily visible on all screens for testing */
    margin-top: 15px;
}

.accordion-day {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-day-header:hover {
    background: #f3f4f6;
}

.accordion-day-header.active {
    background: #eff6ff;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-day-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.accordion-day-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 2px;
}

.accordion-toggle {
    font-size: 1.2rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.accordion-day-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-day-content.active {
    max-height: 2000px;
}

.accordion-time-slots {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.accordion-time-slot {
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.accordion-time-slot.available {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.accordion-time-slot.available:active {
    background: #bbf7d0;
    transform: scale(0.98);
}

.accordion-time-slot.unavailable {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.accordion-time-slot.unavailable:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

.accordion-time-slot.booked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    cursor: default;
}

.accordion-time-slot.past {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.accordion-time-slot.past:active {
    transform: none;
}

.accordion-time-slot-time {
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.accordion-time-slot-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Bookings Table */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bookings-table thead {
    background: #f3f4f6;
}

.bookings-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookings-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.bookings-table tbody tr:hover {
    background: #f9fafb;
}

.bookings-table tbody tr:last-child td {
    border-bottom: none;
}

.bookings-table .booking-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bookings-table .status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bookings-table .status-completed {
    background: #dcfce7;
    color: #166534;
}

.bookings-table .btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .bookings-table {
        font-size: 0.85rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 10px 8px;
    }
    
    .bookings-table th {
        font-size: 0.75rem;
    }
}

/* Login Modal Specific Styles */
#login-modal .country-code-select {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    min-width: 90px;
    font-size: 0.85rem;
    padding: 8px 4px;
}

#login-modal .phone-input-group input {
    flex: 1;
    min-width: 0;
}

/* Login Modal Messages */
#login-message .loading {
    background: #dbeafe;
    color: #1e40af;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

#login-message .error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

#login-message .success {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

/* Service price input placeholder styling */
input[type="number"] {
    color: #1e293b !important;
}

input[type="number"]::placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

input[type="number"]::-webkit-input-placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

input[type="number"]::-moz-placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

input[type="number"]:-ms-input-placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

/* ============ PAYMENT MODAL (Lenco mobile money) ============ */

.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
}

.payment-modal__dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.payment-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.payment-modal__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.payment-modal__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0 0.25rem;
}

.payment-modal__close:hover { color: #0f172a; }

.payment-modal__summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.payment-modal__summary > div {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    color: #475569;
}

.payment-modal__total {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.6rem !important;
    font-weight: 700;
    color: #0f172a !important;
}

.payment-modal__form { display: flex; flex-direction: column; }

.payment-modal__form label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: #334155;
}

.payment-modal__form select,
.payment-modal__form input {
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    width: 100%;
}

.payment-modal__form select:focus,
.payment-modal__form input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
}

.payment-modal__form .btn-pay {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.payment-modal__form .btn-pay:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.payment-modal__status {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.payment-modal__status-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.payment-modal__status-title { font-weight: 700; margin-bottom: 0.2rem; }
.payment-modal__status-detail { font-size: 0.9rem; opacity: 0.85; }

.payment-modal__status--info    { background: #dbeafe; color: #1e40af; }
.payment-modal__status--success { background: #d1fae5; color: #065f46; }
.payment-modal__status--warn    { background: #fef3c7; color: #92400e; }
.payment-modal__status--error   { background: #fee2e2; color: #991b1b; }

@media (max-width: 480px) {
    .payment-modal__dialog { padding: 1.15rem; border-radius: 14px; }
}
