/* Select Barber Page Styles */

/* Process Step States */
.process-step.completed .process-icon {
    background-color: rgba(139, 69, 19, 0.3);
    border-color: #8B4513;
}

.process-step.active .process-icon,
.process-icon.active-icon {
    background-color: #8B4513;
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.6);
}

.process-step.active .process-icon i {
    color: #ffffff;
}

/* Progress Navigation Section */
.progress-navigation {
    background-color: #f9f9f9;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Navigation Buttons */
.nav-btn {
    font-family: 'Montserrat', sans-serif;
    background-color: #8B4513;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    min-width: 120px;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background-color: #6B3510;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.back-btn {
    background-color: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.back-btn:hover {
    background-color: #8B4513;
    color: #ffffff;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-circle i {
    font-size: 1rem;
    color: #888888;
}

.step span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888888;
    font-weight: 500;
}

.step.completed .step-circle {
    background-color: #8B4513;
}

.step.completed .step-circle i {
    color: #ffffff;
}

.step.completed span {
    color: #8B4513;
}

.step.current .step-circle {
    background-color: #8B4513;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2);
}

.step.current .step-circle i {
    color: #ffffff;
}

.step.current span {
    color: #1a1a1a;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.step-line.completed {
    background-color: #8B4513;
}

/* Barber Section */
.barber-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
}

.barber-container {
    max-width: 1400px;
    margin: 0 auto;
}

.barber-header {
    text-align: center;
    margin-bottom: 3rem;
}

.barber-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.barber-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Barber Grid */
.barber-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Barber Card */
.barber-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.barber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.barber-card.selected {
    border-color: #8B4513;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.barber-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.barber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.barber-card:hover .barber-image img {
    transform: scale(1.05);
}

.selected-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.selected-badge i {
    color: #ffffff;
    font-size: 1.2rem;
}

.barber-card.selected .selected-badge {
    opacity: 1;
    transform: scale(1);
}

.barber-info {
    padding: 1.5rem;
}

.barber-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.barber-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8B4513;
    background-color: rgba(139, 69, 19, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.barber-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.barber-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #FFD700;
    font-size: 0.9rem;
}

.barber-rating span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888888;
}

.reviews-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #8B4513;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reviews-link:hover {
    color: #6B3510;
    text-decoration: underline;
}

.select-barber-btn {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    background-color: #8B4513;
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.select-barber-btn:hover {
    background-color: #6B3510;
    transform: translateY(-2px);
}

.select-barber-btn.selected {
    background-color: #2e7d32;
}

.select-barber-btn.selected:hover {
    background-color: #1b5e20;
}

/* Footer Link Styles */
footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .barber-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .progress-navigation {
        padding: 1rem;
    }

    .progress-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .progress-steps {
        order: -1;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .step-line {
        width: 40px;
    }

    .nav-btn {
        width: 100%;
    }

    .barber-section {
        padding: 3rem 1rem;
    }

    .barber-header h2 {
        font-size: 2rem;
    }

    .barber-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .barber-image {
        height: 200px;
    }

    .barber-info {
        padding: 1rem;
    }

    .barber-info h3 {
        font-size: 1.2rem;
    }

    .barber-description {
        font-size: 0.85rem;
    }

    .step-circle {
        width: 38px;
        height: 38px;
    }

    .step-circle i {
        font-size: 0.85rem;
    }

    .step span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .barber-header h2 {
        font-size: 1.6rem;
    }

    .barber-header p {
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .step-line {
        width: 25px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-circle i {
        font-size: 0.75rem;
    }

    .step span {
        font-size: 0.65rem;
    }

    .barber-image {
        height: 180px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .select-barber-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Unavailable Card Mobile */
    .unavailable-overlay {
        padding: 0.6rem 1rem;
    }

    .unavailable-text {
        font-size: 0.8rem;
    }
}

/* ========================================
   Unavailable Barber Card Styles
   ======================================== */

/* Unavailable Card - Faded Effect */
.barber-card.unavailable {
    position: relative;
    opacity: 0.6;
    filter: grayscale(40%);
    pointer-events: none;
}

.barber-card.unavailable:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.barber-card.unavailable .barber-image img {
    filter: grayscale(30%);
}

.barber-card.unavailable .select-barber-btn {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Unavailable Overlay with Red Text */
.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(185, 28, 28, 0.9));
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.unavailable-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Re-enable reviews link on unavailable cards */
.barber-card.unavailable .reviews-link {
    pointer-events: auto;
}

/* Unavailable Button State */
.select-barber-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.select-barber-btn:disabled:hover {
    background-color: #cccccc;
    transform: none;
}

/* ========================================
   Responsive - Unavailable Cards
   ======================================== */

@media (max-width: 992px) {
    .unavailable-overlay {
        padding: 0.7rem 1rem;
    }

    .unavailable-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .unavailable-overlay {
        padding: 0.65rem 0.9rem;
    }

    .unavailable-text {
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 576px) {
    .unavailable-overlay {
        padding: 0.6rem 0.8rem;
    }

    .unavailable-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .unavailable-overlay {
        padding: 0.5rem 0.6rem;
    }

    .unavailable-text {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }
}
