/* ==========================================================================
   SYSTEM PROJEKTOWY: PREMIUM GLASSMORPHISM DLA FLATPACK.HELP
   ========================================================================== */

:root {
    /* Paleta kolorów */
    --primary: #31524c;            /* Głęboka, szlachetna zieleń leśna z wytycznych */
    --primary-light: #416b63;
    --primary-glow: rgba(49, 82, 76, 0.15);
    
    --accent: #097eff;             /* Żywy niebieski z załącznika */
    --accent-light: #3da2ff;
    --accent-glow: rgba(9, 126, 255, 0.2);
    
    --yellow: #e7ba04;             /* Ciepły żółty z wytycznych */
    --dark: #0f172a;               /* Ciemny grafit / navy */
    
    --bg-light: #f8fafc;
    --bg-section: #ffffff;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(15, 23, 42, 0.08);
    
    --text-light: #ffffff;
    --text-navy: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    
    /* Promienie i efekty */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    
    --shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 30px 60px -20px rgba(49, 82, 76, 0.15), 0 1px 5px rgba(0, 0, 0, 0.04);
    
    /* Typografia */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset stylów */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-navy);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    color: var(--text-body);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    position: relative;
    background-color: var(--bg-section);
}

section:nth-of-type(even) {
    background-color: var(--bg-light);
}

/* ==========================================================================
   ANNOUNCEMENT BAR & FLOATING HEADER
   ========================================================================== */

/* Pasek górny - Żywy niebieski z załącznika */
.top-info-bar {
    background-color: var(--accent);
    padding: 10px 24px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 101;
}

.top-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-info-bar a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 800;
    transition: var(--transition);
}

.top-info-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.info-divider {
    opacity: 0.25;
}

/* Nagłówek nakładany na zdjęcie w tle - wyżej dla eleganckiego minimalizmu */
.main-header {
    position: absolute;
    top: 40px; 
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; /* Zwiększone dla 30% większego logo */
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* ==========================================================================
   PURE HTML LOGO STYLES (PREMIUM TYPOGRAPHY)
   ========================================================================== */
.logo-html {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-emoji {
    display: inline-block;
    transform-origin: bottom center;
    font-size: 2.3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
    user-select: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logo-tm {
    font-weight: 300 !important;
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 2px;
}

.logo-tagline {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.logo-html:hover .logo-emoji:not(.logo-loading) {
    animation: logo-hover-wiggle 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-html:hover .logo-title {
    color: #ffffff;
}

.logo-emoji.logo-loading {
    animation: logo-loading-wiggle 1.2s ease-in-out infinite;
}

@keyframes logo-loading-wiggle {
    0% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-8deg) translateY(-3px) scale(1.06); }
    50% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(8deg) translateY(-3px) scale(1.06); }
    100% { transform: rotate(0deg) translateY(0); }
}

@keyframes logo-hover-wiggle {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-15deg) scale(1.12); }
    60% { transform: rotate(10deg) scale(1.12); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Footer HTML Logo Specifics */
.footer-logo-html .logo-title {
    text-shadow: none;
}

.footer-logo-html .logo-tagline {
    color: rgba(255, 255, 255, 0.65);
    text-shadow: none;
}

.logo-subtext {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    color: #ffffff; /* Czysta biel z wytycznych */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
    pointer-events: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: var(--yellow);
}

/* ==========================================================================
   PRZYCISKI (BUTTONS - PREMIUM & CLEAN)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background-color: #ffffff;
    color: var(--text-navy);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 126, 255, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   SEKCJA HERO (ZDJĘCIE SALONU W TLE + ELEGANCKA NAKŁADKA SZKŁA)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 780px; /* Zmniejszone z 100vh, aby zapobiec nadmiernemu rozciąganiu tła, zmieścić więcej obrazu i poprawić ostrość */
    padding: 140px 0 80px 0; /* Zmniejszone paddingi, by wszystko dać znacznie wyżej */
    display: flex;
    align-items: center;
    background-image: url('assets/salon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 82, 76, 0.3) 0%, rgba(15, 23, 42, 0.45) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    /* Zmieniony podział: formularz po prawej (1.2fr) jest szerszy niż treść po lewej (0.8fr) */
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

/* Karta tekstowa w stylu Glassmorphism (Szkło) */
.hero-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    color: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.friendly-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ==========================================================================
   WIGODNY, SZERSZY FORMULARZ NAŁOŻONY NA ZDJĘCIE
   ========================================================================== */
.form-container {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 45px; /* Szersze i bardziej wygodne wypełnianie na desktopie */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    width: 100%;
}



.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-navy);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center; /* Wyśrodkowanie nagłówka formularza */
}

.highlight-underline {
    position: relative;
    display: inline-block;
    color: var(--text-navy); /* matches title navy color */
}

.highlight-underline::after {
    content: "";
    position: absolute;
    left: -2%;
    bottom: -6px;
    width: 104%;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M1,8 Q24,4 48,7 T78,5 T99,7' fill='none' stroke='%23097eff' stroke-width='3.2' stroke-linecap='round'/><path d='M3,10 Q28,7 52,9 T82,6 T97,8' fill='none' stroke='%23097eff' stroke-width='2.2' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Foldable screenshots section styling */
.foldable-screenshots-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    margin-top: 0;
    width: 100%;
}

.foldable-screenshots-content.expanded {
    max-height: 350px; /* High enough to contain the drop area and file list */
    opacity: 1;
    margin-top: 8px;
}

.fold-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fold-arrow.rotated {
    transform: rotate(-180deg);
}


/* Mobilny pasek kontaktowy (ukryty na desktopie) */
.mobile-contact-bar {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Zwiększony odstęp między polami */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-navy);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 13px 18px; /* Wygodniejsze, wyższe pola do klikania */
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    background-color: #f8fafc;
    color: var(--text-navy);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-textarea {
    resize: none;
    min-height: 180px;
    overflow-y: hidden; /* Hide vertical scrollbar for dynamic auto-sizing */
}

.form-textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Sukces formularza */
.form-success-message {
    text-align: center;
    padding: 24px 10px;
}

.success-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.form-success-message h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}



/* ==========================================================================
   TRUSTPILOT GLOBAL BADGE & STAR BLOCKS
   ========================================================================== */
.trustpilot-global-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: #ffffff;
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin-top: 8px;
    flex-wrap: wrap;
}

.tp-badge-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-star-logo {
    display: block;
}

.tp-badge-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-navy);
    letter-spacing: -0.01em;
}

.tp-badge-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(15, 23, 42, 0.12);
}

.tp-badge-stars {
    display: flex;
    gap: 4px;
}

.tp-star-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #00b67a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 3px;
    line-height: 1;
}

.tp-badge-stats {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tp-badge-stats strong {
    color: var(--text-navy);
    font-weight: 700;
}

/* Karta Opinii - Header z Trustpilot Verified */
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.review-rating {
    color: var(--yellow);
    font-size: 1.15rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.review-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: #00b67a;
    background-color: rgba(0, 182, 122, 0.06);
    padding: 4px 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.review-card:hover .review-platform {
    background-color: rgba(0, 182, 122, 0.12);
}

.tp-mini-star {
    display: block;
}

/* ==========================================================================
   OPINIE KLIENTÓW (GRID 3 KARTY HORYZONTALNIE)
   ========================================================================== */
.reviews-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 30px 0; /* Dodatkowa przestrzeń na dole na cienie kart */
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    flex-shrink: 0;
    width: calc((100% - 60px) / 3); /* Desktop: 3 widoczne karty */
    box-sizing: border-box;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.review-body-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.review-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-navy);
    margin: 0;
    line-height: 1.4;
}

.review-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.review-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.review-see-more {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
    transition: var(--transition);
    align-self: flex-start;
}

.review-see-more:hover {
    color: var(--accent-light);
    text-decoration: underline;
}


.review-author {
    font-size: 0.88rem;
    color: var(--text-navy);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 16px;
    font-weight: 700;
}


/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-navy);
    font-size: 1.8rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    z-index: 10;
    user-select: none;
    line-height: 1;
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent);
}

/* ==========================================================================
   STOPKA Z LOGO IG
   ========================================================================== */
.main-footer {
    background-color: #074594; /* Ciemniejszy niebieski niż top na górze */
    color: #ffffff;
    padding: 60px 0 30px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-items: center;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-col .logo-group {
    margin-bottom: 16px;
    align-items: center;
}

.footer-brand-col .logo-text-group {
    align-items: center;
}

.footer-brand-col .logo-subtext {
    color: rgba(255, 255, 255, 0.65); /* Lekko przyciemniony w stopce dla hierarchii */
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 380px;
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
}

.footer-slogan-dash {
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0 4px;
    font-weight: 300;
}

.footer-social-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important; /* Wymuś czystą biel na ikonie i tekście */
    border-radius: 30px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    transition: var(--transition);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
    filter: brightness(1.08);
}

.instagram-icon {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom p {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILNA REWOLUCJA)
   ========================================================================== */
@media (max-width: 992px) {
    body {
        display: flex;
        flex-direction: column;
    }
    
    .main-header {
        position: static !important;
        background-color: var(--accent) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        order: 1;
        padding: 24px 0 !important; /* Made the top bar taller on mobile */
    }
    
    .header-container {
        justify-content: center !important;
        text-align: center;
        height: auto;
    }
    
    .logo-group {
        align-items: center !important;
        gap: 0px !important; /* Usunięcie domyślnego odstępu */
    }
    
    .main-header .logo-subtext {
        font-size: 0.55rem !important;
        font-weight: 400 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.8) !important;
        text-shadow: none !important;
        margin-top: -5px !important; /* Dosunięcie podpisu bezpośrednio pod logo */
    }
    
    .top-info-bar:first-of-type {
        display: none !important; /* Ukrywamy całkowicie na samej górze */
    }
    
    main {
        order: 2;
    }
    
    .main-footer {
        order: 3;
    }
    
    .hero-section {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
        min-height: auto; /* Pozwala tłu dopasować się naturalnie do wysokości treści bez rozciągania */
    }
    
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }
    
    .form-container {
        order: 1 !important; /* Formularz na mobilkach wchodzi na samą górę sekcji hero! */
        padding: 30px 24px;
    }
    

    
    .mobile-contact-bar {
        display: flex !important; /* Pokazujemy pasek na mobile pod formularzem */
        justify-content: center;
        align-items: center;
        gap: 24px;
        order: 2 !important;
        background-color: #f1f5f9; /* Śliczny, stonowany szary pasek */
        color: #475569;
        border-radius: var(--radius-sm);
        padding: 14px 20px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.85rem;
        width: 100%;
        border: 1px solid rgba(15, 23, 42, 0.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .mobile-contact-bar a {
        color: var(--primary) !important;
        text-decoration: none !important;
        font-weight: 800 !important;
        border-bottom: 1px dashed var(--primary);
    }
    
    .hero-content {
        order: 3 !important; /* Krótki opis wchodzi pod pasek kontaktowy */
        padding: 24px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.0rem !important;
        margin-bottom: 12px !important;
        line-height: 1.25 !important;
    }
    
    .review-card {
        width: calc((100% - 30px) / 2); /* Tablet: 2 widoczne karty */
    }
    .carousel-track {
        gap: 30px;
    }
    .prev-btn {
        left: -12px;
    }
    .next-btn {
        right: -12px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-slogan {
        margin: 0 auto;
    }
    
    }
}

@media (max-width: 576px) {
    .top-info-bar {
        font-size: 0.78rem;
        padding: 8px 16px;
    }
    
    .top-info-container {
        gap: 8px;
    }
    
    .logo-emoji {
        font-size: 1.8rem;
    }
    .logo-title {
        font-size: 1.4rem;
    }
    .logo-tagline {
        font-size: 0.55rem;
    }
    
    .hero-title {
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }
    
    .hero-content {
        padding: 18px 14px !important;
    }
    
    .hero-content .friendly-badge {
        font-size: 0.68rem !important;
        margin-bottom: 6px !important;
    }
    
    .hero-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container {
        padding: 18px 14px; /* More compact padding */
    }

    .form-title {
        font-size: 1.15rem; /* Smaller title */
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .form-group {
        margin-bottom: 8px !important; /* Bring fields closer together on mobile */
        gap: 2px !important; /* Tighten gap between label and input */
    }

    .form-label {
        font-size: 0.85rem; /* Legible label text (1 point larger) */
    }

    .form-input {
        padding: 10px 12px;
        font-size: 16px; /* Exactly 16px (1pt larger) to prevent iOS focus auto-zoom! */
    }

    .form-textarea {
        padding: 10px 12px;
        font-size: 16px; /* Exactly 16px to prevent iOS focus auto-zoom! */
        min-height: 160px; /* Spacious, larger description window as requested */
    }

    /* Extremely slim and compact file upload area */
    .file-drop-area {
        padding: 10px 8px; /* Slim uploader height as requested */
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }

    .file-drop-text {
        font-size: 0.82rem;
    }

    .file-drop-subtext {
        font-size: 0.72rem;
    }

    .file-list {
        margin-top: 6px;
        gap: 4px;
    }

    .file-item {
        padding: 6px 10px;
    }

    /* Beautiful submit button */
    .form-container .btn-block {
        padding: 12px 20px;
        font-size: 0.95rem; /* Larger font */
        margin-top: 6px;
    }
    
    .trustpilot-global-badge {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        border-radius: 20px;
    }
    
    .tp-badge-divider {
        display: none;
    }
    
    .review-card {
        width: 100%; /* Mobile: 1 widoczna karta */
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .prev-btn {
        left: -8px;
    }
    .next-btn {
        right: -8px;
    }
}

/* ==========================================================================
   POSTCODE AUTOCOMPLETE & VALIDATION WIDGET
   ========================================================================== */
.zip-input-wrapper {
    position: relative;
    width: 100%;
}

.zip-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.zip-suggestion-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-navy);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.zip-suggestion-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.zip-validation-msg {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    min-height: 18px;
    text-align: left;
}

.zip-msg-success {
    color: #00b67a;
}

.zip-msg-warning {
    color: var(--accent);
}

.zip-msg-error {
    color: #ef4444;
}

.form-input.zip-input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-input.zip-input-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.phone-validation-msg {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    min-height: 18px;
    text-align: left;
}

.phone-msg-success {
    color: #00b67a;
}

.phone-msg-warning {
    color: var(--accent);
}

.phone-msg-error {
    color: #ef4444;
}

.form-input.phone-input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-input.phone-input-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================================================
   DRAG & DROP FILE UPLOAD AREA
   ========================================================================== */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    user-select: none;
    margin-top: 6px;
}

.file-drop-area:hover, .file-drop-area.highlight {
    border-color: var(--accent);
    background-color: rgba(9, 126, 255, 0.04);
    box-shadow: 0 4px 20px rgba(9, 126, 255, 0.08);
}

.file-drop-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.file-drop-area:hover .file-drop-icon, .file-drop-area.highlight .file-drop-icon {
    transform: translateY(-4px) scale(1.1);
}

.file-drop-text {
    font-size: 0.95rem;
    color: var(--text-navy);
    font-weight: 600;
    margin-bottom: 4px;
}

.file-drop-browse {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 800;
}

.file-drop-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* File list style */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    gap: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    animation: slideIn 0.25s ease-out;
}

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

.file-icon {
    font-size: 1.1rem;
}

.file-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    max-width: 250px;
    text-align: left;
}

.file-size {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
    margin-left: auto;
}

.file-remove:hover {
    color: #ef4444;
    transform: scale(1.2);
}

/* Footer Social Icons Column & Row (Perfectly centered on desktop and mobile) */
.footer-social-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-social-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-social-icon {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.footer-social-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}
.footer-social-icon:hover {
    color: #00b67a;
    transform: translateY(-3px) scale(1.18);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

/* Trustpilot Footer Rating Widget (Perfect centered replica of the attached badge) */
.footer-trustpilot-box {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-tp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    padding: 4px 0;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-tp-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tp-star-icon {
    display: inline-block;
}

.tp-brand-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tp-vertical-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.3);
}

.tp-badge-stars {
    display: flex;
    gap: 3px;
}

.tp-star-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #00b67a; /* Official Trustpilot Green */
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 2px;
    line-height: 1;
}

.tp-rating-text {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: #ffffff;
}

.footer-tp-locations {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    letter-spacing: 0.05em;
    text-align: center;
}

.footer-trustpilot-box a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-trustpilot-box a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* Testimonials Portrait Tablet & Mobile 1-Column Force */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.65rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    .review-card {
        width: 100% !important;
        padding: 20px 18px !important;
        gap: 8px !important;
    }
    
    .review-card-header {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
    }
    
    .review-rating {
        font-size: 1.05rem !important;
    }
    
    .review-title {
        font-size: 0.95rem !important;
    }
    
    .review-text {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .review-author {
        padding-top: 10px !important;
        font-size: 0.8rem !important;
    }
    
    .review-see-more {
        margin-top: 2px !important;
        font-size: 0.78rem !important;
    }
    
    /* Footer Social and Trustpilot Mobile Optimizations */
    .footer-social-row {
        gap: 8px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .footer-social-icon {
        width: auto !important;
        height: auto !important;
        border: none !important;
        padding: 6px !important;
        flex-shrink: 1 !important;
    }
    
    .footer-social-icon svg {
        width: 20px !important;
        height: 20px !important;
        max-width: 100% !important;
    }
    
    .footer-tp-badge {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }
    
    .footer-tp-brand {
        gap: 3px !important;
    }
    
    .tp-brand-name {
        font-size: 0.82rem !important;
    }
    
    .tp-star-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .tp-star-square {
        width: 14px !important;
        height: 14px !important;
        font-size: 0.58rem !important;
    }
    
    .tp-badge-stars {
        gap: 2px !important;
    }
    
    .tp-rating-text {
        font-size: 0.78rem !important;
    }
    
    .tp-vertical-divider {
        height: 10px !important;
    }
    
    .footer-tp-locations {
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   INSTAGRAM FEED SLIDER (CAROUSEL)
   ========================================================================== */
.instagram-slider-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 85px 0;
    overflow: hidden;
}

.insta-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.insta-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 30px 0; /* Space for box-shadow hover */
}

.insta-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.insta-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-shrink: 0;
    width: calc((100% - 72px) / 4); /* Desktop: 4 items side-by-side */
    box-sizing: border-box;
    overflow: hidden;
}

.insta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.insta-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.insta-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-card:hover .insta-img {
    transform: scale(1.06);
}

.insta-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 126, 255, 0.12);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.insta-card:hover .insta-card-overlay {
    opacity: 1;
}

.insta-overlay-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.insta-card-body {
    padding: 18px;
    background-color: #ffffff;
}

.insta-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.insta-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.insta-likes {
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--primary);
}

.insta-caption {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-body);
    font-weight: 500;
    text-align: left;
    margin: 0;
    
    /* Limit description text to exactly 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Slider Navigation Buttons */
.insta-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-navy);
    font-size: 1.8rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    z-index: 10;
    user-select: none;
    line-height: 1;
}

.insta-slider-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: translateY(-50%) scale(1.08);
}

.insta-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.insta-slider-btn.prev-btn {
    left: -25px;
}

.insta-slider-btn.next-btn {
    right: -25px;
}

/* Responsive updates for Instagram slider */
@media (max-width: 992px) {
    .insta-card {
        width: calc((100% - 24px) / 2); /* Tablet: 2 visible items */
    }
    
    .instagram-slider-section {
        padding: 60px 0;
    }
    
    .insta-slider-btn.prev-btn {
        left: -12px;
    }
    
    .insta-slider-btn.next-btn {
        right: -12px;
    }
}

@media (max-width: 576px) {
    .insta-card {
        width: 100%; /* Mobile: 1 visible item */
    }
    
    .insta-slider-btn.prev-btn {
        left: -8px;
    }
    
    .insta-slider-btn.next-btn {
        right: -8px;
    }
}

/* ==========================================================================
   INSTAGRAM PREVIEW MODAL (PREMIUM GLASSMORPHISM & DYNAMIC RESPONSIVE)
   ========================================================================== */
.insta-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.insta-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s ease;
}

.insta-modal-container {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 960px;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 2;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-modal.active .insta-modal-container {
    transform: translateY(0) scale(1);
}

.insta-modal-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #ffffff; /* White color to stand out on dark overlay */
    font-size: 2.2rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.insta-modal-close:hover {
    color: var(--accent-light);
    transform: scale(1.15) rotate(90deg);
}

.insta-modal-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    max-height: 85vh;
    min-height: 580px;
}

.insta-modal-image-sec {
    position: relative;
    background-color: #000000; /* Solid black bounds like real Instagram */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.insta-modal-image-sec img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full aspect ratio/whole resolution, no cropping */
}

.insta-modal-details-sec {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    height: 100%;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

/* Instagram Header */
.insta-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.insta-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insta-modal-avatar-blue {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent); /* Instagram Verified/Brand Blue shade */
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insta-modal-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.insta-modal-username {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #262626;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.insta-modal-username:hover {
    opacity: 0.8;
}

.insta-modal-follow-divider {
    font-size: 0.9rem;
    color: #262626;
    font-weight: 500;
}

.insta-modal-follow-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: #0095f6; /* Real Instagram Blue Link */
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.insta-modal-follow-btn:hover {
    color: #00376b;
}

.insta-modal-more-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}

.insta-modal-more-btn:hover {
    opacity: 0.5;
}

/* Scrollable body */
.insta-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    max-height: 400px;
}

/* Main caption block styling */
.insta-modal-caption-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.insta-modal-caption-content {
    flex-grow: 1;
}

.insta-modal-caption-content .insta-modal-username {
    margin-right: 6px;
    display: inline;
}

.insta-modal-caption-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #262626;
    font-weight: 500;
    white-space: pre-wrap; /* Crucial for displaying multiline real layout text */
    word-break: break-word;
}

/* Comments list styling */
.insta-modal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #262626;
}

.comment-author {
    font-weight: 700;
    color: #262626;
    margin-right: 6px;
    text-decoration: none;
}

.comment-text {
    font-weight: 500;
    color: #262626;
}

/* Action Area */
.insta-modal-action-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.insta-modal-icons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.insta-modal-icons-left {
    display: flex;
    gap: 16px;
}

.insta-icon-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #262626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.insta-icon-btn svg {
    display: block;
    stroke: #262626;
    transition: var(--transition);
}

.insta-icon-btn:hover {
    transform: scale(1.12);
}

.insta-icon-btn:hover svg {
    stroke: #000000;
}

.insta-modal-likes-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: #262626;
    margin-top: 2px;
}

.insta-modal-post-date {
    font-size: 0.68rem;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin-top: 2px;
}

/* Comment Input Area */
.insta-modal-comment-input-sec {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px 16px;
    background-color: #ffffff;
}

.insta-modal-comment-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.emoji-picker-icon {
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: opacity 0.15s ease;
}

.emoji-picker-icon:hover {
    opacity: 0.7;
}

.insta-comment-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    outline: none;
    color: #262626;
    font-family: var(--font-body);
}

.insta-comment-input::placeholder {
    color: #8e8e8e;
}

.insta-comment-post-btn {
    border: none;
    background: transparent;
    font-weight: 750;
    color: #0095f6; /* Instagram Blue Link Style */
    font-size: 0.88rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
    text-decoration: none;
    padding: 4px 8px;
    display: inline-block;
}

.insta-comment-post-btn:hover {
    opacity: 0.65;
    color: #00376b;
}

/* Modal Responsive adaptation */
@media (max-width: 860px) {
    .insta-modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
        min-height: auto;
    }
    
    .insta-modal-image-sec {
        aspect-ratio: 16 / 10;
        height: auto;
    }
    
    .insta-modal-container {
        max-width: 520px;
    }
    
    .insta-modal-details-sec {
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
    
    .insta-modal-body {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .insta-modal {
        padding: 10px;
    }
    
    .insta-modal-container {
        border-radius: var(--radius-md);
    }
}

