/* ==========================================================================
   CIANA V4 — GEL BY CIANA STUDIO (SERVICES MENU, TOUCH LOOKBOOK & JOTFORM)
   ========================================================================== */

#salon-page {
    padding-top: 6.5rem;
    background: radial-gradient(circle at 82% 10%, rgba(0, 184, 196, 0.12), transparent 40%),
                radial-gradient(circle at 12% 55%, rgba(0, 184, 196, 0.08), transparent 45%),
                var(--bg-salon-canvas);
}

/* Editorial Studio Service Menu */
.services-showcase {
    margin-bottom: 5.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1.5rem;
}

.service-glass-card {
    padding: 1.9rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--glass-fill-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-outer);
    box-shadow: var(--shadow-glass-md), var(--glass-specular-inset);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.35s var(--ease-liquid),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.service-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 184, 196, 0.55);
    box-shadow: var(--shadow-glass-lg), var(--glass-specular-inset);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.service-icon-orb {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 184, 196, 0.16), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(0, 184, 196, 0.25);
    color: var(--accent-salon-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.service-tag {
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 184, 196, 0.1);
    color: var(--accent-salon-deep);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.service-glass-card h3 {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    color: var(--ink-primary);
}

.service-glass-card p {
    color: var(--ink-secondary);
    font-size: 0.91rem;
    line-height: 1.62;
    flex: 1;
}

.service-book-link {
    margin-top: 0.25rem;
    align-self: flex-start;
    background: none;
    border: none;
    min-height: 38px;
    padding: 0.45rem 0;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent-salon-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: gap 0.25s ease, color 0.25s ease;
}

.service-book-link:hover {
    gap: 0.7rem;
    color: var(--ink-primary);
}

/* Filterable Lookbook Gallery */
.gallery-wrapper {
    margin-bottom: 5.5rem;
}

.gallery-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.gallery-header-bar h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--ink-primary);
}

.salon-filter-bar .filter-pill-btn.active {
    background: var(--accent-salon-deep);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 0.84;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--glass-border-outer);
    box-shadow: var(--shadow-glass-sm);
    transition: transform 0.4s var(--ease-liquid),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 184, 196, 0.6);
    box-shadow: var(--shadow-glass-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease-liquid);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Floating Frosted Glass Caption Pill inside Lookbook */
.gallery-overlay {
    position: absolute;
    inset: auto 0.85rem 0.85rem 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transform: translateY(8px);
    opacity: 0.94;
    transition: transform 0.35s var(--ease-liquid), opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.gallery-overlay i {
    color: var(--accent-salon-deep);
    font-size: 0.82rem;
}

/* Salon Artist Card */
.profile-section {
    margin-bottom: 5.5rem;
}

.profile-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.25rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-xl);
    background: var(--glass-fill-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-outer);
    box-shadow: var(--shadow-glass-md), var(--glass-specular-inset);
}

.profile-img-wrap {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #ffffff, var(--accent-salon));
    box-shadow: var(--shadow-glass-md);
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details .profile-role {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--accent-salon-deep);
}

.profile-details h3 {
    font-family: var(--font-serif);
    font-size: 2.15rem;
    margin: 0.4rem 0 1rem;
}

.profile-details p {
    color: var(--ink-secondary);
    font-size: 1.02rem;
    line-height: 1.78;
    margin-bottom: 1.5rem;
}

/* JotForm Private Booking Suite with Shimmer Skeleton */
.booking-section {
    max-width: 1140px;
    margin: 0 auto;
    scroll-margin-top: 6.5rem;
}

.booking-card {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    border-radius: var(--radius-xl);
    background: var(--glass-fill-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-outer);
    box-shadow: var(--shadow-glass-lg), var(--glass-specular-inset);
    overflow: hidden;
}

.booking-info {
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, rgba(240, 252, 253, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);
    border-right: 1px solid var(--glass-border-hairline);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 184, 196, 0.25);
    color: var(--accent-salon-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: var(--shadow-glass-sm);
}

.booking-info h3 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    line-height: 1.18;
}

.booking-info p {
    color: var(--ink-secondary);
    line-height: 1.68;
    font-size: 0.96rem;
}

.selected-service-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 184, 196, 0.12);
    border: 1px solid rgba(0, 184, 196, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-primary);
}

.selected-service-banner.visible {
    display: flex;
}

.clear-service-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 184, 196, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.clear-service-btn:hover {
    background: #ffffff;
    color: var(--ink-primary);
}

.info-alert {
    margin-top: auto;
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 184, 196, 0.2);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink-secondary);
}

.info-alert i {
    color: var(--accent-salon-deep);
    margin-top: 0.15rem;
}

.booking-form-container {
    position: relative;
    padding: 1.5rem;
    background: #ffffff;
    min-height: 640px;
}

/* Shimmer Skeleton while JotForm iframe initializes */
.jotform-skeleton {
    position: absolute;
    inset: 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #f4f7f8 25%, #e9f2f4 50%, #f4f7f8 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.jotform-skeleton.loaded {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.jotform-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    background: #ffffff;
    height: 1670px;
}

.jotform-iframe {
    width: 100%;
    height: 1750px;
    border: none;
    overflow: hidden;
    background: #ffffff;
}

@media (max-width: 1024px) {
    .booking-card {
        grid-template-columns: 1fr;
    }

    .booking-info {
        border-right: none;
        border-bottom: 1px solid var(--glass-border-hairline);
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.25rem 1.65rem;
    }
}

@media (max-width: 768px) {
    #salon-page {
        padding-top: 5.2rem;
    }

    .services-showcase,
    .gallery-wrapper,
    .profile-section {
        margin-bottom: 3.5rem;
    }

    .gallery-header-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .salon-filter-bar {
        max-width: 100%;
    }

    .booking-info {
        padding: 1.85rem 1.3rem;
    }

    .booking-form-container {
        padding: 0.6rem;
    }

    .jotform-skeleton {
        inset: 0.6rem;
    }

    .jotform-iframe {
        height: 2050px;
    }

    .jotform-wrapper {
        height: 1970px;
    }
}
