:root {
    --primary: rgb(6, 78, 59);
    --primary-light: #10b981;
    --primary-dark: #047857;
    --bg-opacity: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Work Sans', system-ui, sans-serif;
    background: #111827;
}

.top-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1280px, 95%);
    height: 3.5rem;
    background: var(--primary);
    border-radius: 1rem;
    z-index: 50;
}

.nav-container {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: var(--bg-opacity);
    border-radius: 1rem 0 0 1rem;
}

.nav-logo {
    color: white;
    text-decoration: none;
    line-height: 1;
}

.nav-logo span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-logo span:first-child {
    color: var(--primary-light);
}

/* Fixa hero image containment */
.section.relative.min-h-screen.flex.items-center {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.absolute.inset-0 {
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mobile-offert {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
}

.mobile-contact {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    background: var(--primary);
    border-radius: 0 0 1rem 1rem;
    padding: 0.5rem;
    transform: translateY(-1rem);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 48;
}

.menu-items {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s;
}

/* Övriga tjänster knapp */
.mobile-item.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    border: none;
    background: none;
    font: inherit;
}

/* Dropdown innehåll */
.mobile-dropdown-content {
    display: none;
    width: 100%;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content .mobile-item {
    padding-left: 2.5rem;
}

/* Kontakt-sektion */
.mobile-contact {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone {
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: 0.2s;
    height: 100%;
    white-space: nowrap;
}

.nav-item i {
    color: #fff;
}

/* Dölj badge på mobil */
@media (max-width: 768px) {
    .inline-flex.items-center.gap-2.px-4.py-2.rounded-full {
        display: none;
    }
}

/* Hero text styling */
@media (max-width: 768px) {
    #hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
        hyphens: none;
    }
}

@media (max-width: 480px) {
    #hero-title {
        font-size: 1.8rem !important;
    }
}

/* Fixa hero image containment */
.section.relative.min-h-screen.flex.items-center {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.absolute.inset-0 {
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.absolute.inset-0 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* För att säkerställa att container håller sig inom viewporten */
.container.mx-auto.px-6.relative.z-10 {
    max-height: 100vh;
    overflow: hidden;
}

/* Lägg till dessa mediaquery-regler i din CSS */
@media (max-width: 768px) {
    #kompetent-markentreprenad-för-din-fastighet {
        font-size: 2.5rem !important; /* Override tidigare storlek */
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .container {
        padding: 0 1rem; /* Mindre padding på mobil */
    }
}

/* För ännu mindre skärmar */
@media (max-width: 480px) {
    #kompetent-markentreprenad-för-din-fastighet {
        font-size: 2rem !important;
    }
}

.nav-item:hover {
    opacity: 1;
}

.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--bg-opacity);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s;
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    opacity: 1;
    background: var(--bg-opacity);
}

.nav-end {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
    gap: 1.5rem;
    border-left: 1px solid var(--bg-opacity);
}

.offert-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.offert-btn:hover {
    background: var(--primary-dark);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1rem;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--primary);
    border-radius: 0 0 1rem 1rem;
    padding: 0.5rem;
    transform: translateY(-1rem);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 48;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-items {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s;
    border-radius: 0.5rem;
}

.mobile-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-contact {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    opacity: 0.9;
    transition: 0.2s;
    width: 100%;
}

@media (max-width: 1024px) {
    .menu-btn {
        display: block;
    }
}

.chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.3s;
    z-index: 49;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-bubble.visible {
    opacity: 1;
    transform: scale(1);
}

.chat-bubble:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.contact-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-popup.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.popup-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.popup-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #ecfdf5;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary-light);
    font-size: 1.125rem;
}

.popup-title h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.popup-title p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.125rem 0 0;
}

#closePopup {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: 0.2s;
}

#closePopup:hover {
    color: #4b5563;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
}

.input-group input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: 0.2s;
    font-size: 0.875rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.submit-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item.dropdown-btn {
    color: #fff; /* Ändrar text och ikoners färg till vitt */
    background-color: transparent; /* Säkerställer att bakgrunden är genomskinlig */
    border: none; /* Tar bort eventuell kantlinje */
    padding: 10px; /* Justera efter behov */
    font-size: 16px; /* Justera efter behov */
}

/* Specifikt för hero-sektionen med Tailwind klasser */
.hero.h-screen {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.hero .absolute.inset-0 {
    height: 100% !important;
    max-height: 100% !important;
}

.hero .absolute.inset-0 img.w-full.h-full.object-cover {
    height: 100% !important;
    max-height: 100% !important;
}

/* iOS specifik fix */
@supports (-webkit-touch-callout: none) {
    .hero.h-screen {
        height: -webkit-fill-available !important;
        min-height: -webkit-fill-available !important;
        max-height: -webkit-fill-available !important;
    }
}

.submit-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-end {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-nav {
        top: 0.5rem;
    }

    .logo-section {
        padding: 0 1rem;
    }

    .contact-popup {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        bottom: 1rem;
        right: 0;
    }

    .chat-bubble {
        bottom: 1rem;
        right: 1rem;
    }

    .mobile-menu {
        width: 95%;
        right: 2.5%;
    }
}

/* intro */

.intro-section {
    padding: 4rem 0 4rem;
    background: var(--primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.intro-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    color: #6b7280;
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card.special {
    background: var(--primary);
    color: white;
}

.service-card.special h3,
.service-card.special p,
.service-card.special i {
    color: white;
}

.service-link {
    margin-top: auto;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--primary-dark);
}

.cta-section {
    background: #1f2937;
    color: white;
    padding: 4rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    opacity: 0.9;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.kontaktaoss-btn:hover {
    background: var(--primary-dark);
}

.kontaktaoss-section {
    background: rgb(16 185 59 / var(--tw-bg-opacity, 1));
    color: white;
    padding: 4rem 0;
}

.kontaktaoss-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.kontaktaoss-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.kontaktaoss-content p {
    opacity: 0.9;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.kontaktaoss-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.kontaktaoss-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* addons */

.projects-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.reviews-section {
    padding: 4rem 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reviewer {
    font-weight: 600;
    color: var(--primary);
}

.main-footer {
    background: rgb(6, 78, 59);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #10b981;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s;
}

a.footer-contact-item:hover {
    color: #10b981;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.relative.min-h-screen.flex.items-center {
    position: relative;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.absolute.inset-0 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100% !important;
    overflow: hidden !important;
}

.absolute.inset-0 img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

body {
    overflow-x: hidden;
}
.social-link:hover {
    background: #10b981;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}



/* Responsive styles */
@media (max-width: 1024px) {
    .projects-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .project-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    }
}

/* tradgardsunderhall */

.subpage-hero {
    min-height: 500px;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 400px;
    }
}

/* extras */

@media (max-width: 768px) {
    .om-oss-image {
        display: none;
    }
}

/* Floating Chat Button */
.floating-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #10b981;
    border-radius: 50%;
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.3s ease;
    z-index: 49;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-chat.visible {
    opacity: 1;
    transform: scale(1);
}

.floating-chat:hover {
    transform: scale(1.1);
    background: #059669;
}

/* Chat Popup */
.chat-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 380px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.chat-popup.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Popup Header */
.chat-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.chat-popup-title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-popup-icon {
    width: 3rem;
    height: 3rem;
    background: #f0fdf4;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #10b981;
    font-size: 1.25rem;
}

.chat-popup-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chat-popup-title p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

.chat-close {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 50%;
    margin: -0.5rem;
}

.chat-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* Form Styles */
.chat-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.submit-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.submit-button:hover {
    background: #059669;
}

/* Mobile Teaser */
/* Uppdaterad chat-teaser stil */
.chat-teaser {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(100px);
    transition: 0.3s ease;
    z-index: 48;
    display: none;
    width: auto;
    cursor: pointer;
}

.chat-teaser.visible {
    transform: translateY(0);
}

.chat-teaser-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.chat-teaser-content i {
    font-size: 1.25rem;
    color: #10b981;
}

.chat-teaser-content p {
    font-weight: 500;
    margin: 0;
    color: #111827;
    font-size: 0.875rem;
    white-space: nowrap;
}

.chat-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 380px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    transform: scale(0.95) translateX(50px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.chat-popup.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    visibility: visible;
}



/* Dölj den gamla knappen */
.chat-teaser-button {
    display: none;
}

@media (max-width: 768px) {
    .chat-popup {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        right: 0;
        transform: translateY(100%);
    }
    
    .chat-popup.active {
        transform: translateY(0);
    }

    
    .floating-chat {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-teaser {
        display: block;
    }
}