@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoBold.woff2);
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoDemiBold.woff2);
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoMedium.woff2);
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoRegular.woff2);
    font-weight: 400;
    font-display: swap;
}

:root {
    --bs-body-font-family:
        "Clarika", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family:
        "Clarika",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, #fafafa 1px, transparent 1px), linear-gradient(to bottom, #fafafa 1px, transparent 1px);
}

/* Header styles matching distribution-map */
.header-navbar {
    background-color: #fff;
    border-bottom: 1px solid #f4f4f4;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(9.8px);
    -webkit-backdrop-filter: blur(9.8px);
    z-index: 3;
}

.header-navbar a {
    color: #333;
    text-decoration: none;
}

.header-navbar-brand {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

.header-navbar-brand img {
    height: 50px;
}

.header-navbar-mobile {
    background-color: #fff;
    border-bottom: 1px solid #f4f4f4;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(9.8px);
    -webkit-backdrop-filter: blur(9.8px);
    z-index: 3;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: none;
}

.header-navbar-mobile .navbar-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #444;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.146);
    border-bottom: none;
}

.header-navbar-mobile .navbar-collapse {
    margin-top: 15px;
}

.header-navbar-mobile .navbar-nav a:first-child {
    border-radius: 5px 5px 0 0;
}

.header-navbar-mobile .navbar-nav a:last-child {
    border-radius: 0 0 5px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.146);
}

@media only screen and (max-width: 992px) {
    .header-navbar {
        display: none;
    }

    .header-navbar-mobile {
        display: flex;
        margin-bottom: 16px;
    }
}

.bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.section {
    padding-bottom: 0;
    text-align: center;
    padding-top: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: 500;
}

.subTitle {
    font-size: 1.125rem;
    color: rgba(75, 85, 99, 1);
    margin-bottom: 20px;
    text-align: center;
}

/* Main content layout - responsive grid */
.mainContent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    margin-top: 22px;
    margin-bottom: 18px;
}

@media screen and (max-width: 768px) {
    .mainContent {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .previewColumn {
        order: -1;
        margin-bottom: 24px;
    }
}

/* Form column */
.formColumn {
    flex: 1 1 340px;
    max-width: 380px;
    min-width: 260px;
}

/* Preview column */
.previewColumn {
    flex: 1 1 450px;
    min-width: 280px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form container - exact match from lite.module.css */
.form {
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    display: inline-block;
    text-align: left;
    margin-bottom: 24px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
}

/* Input styling - exact match from lite.module.css */
.inputTitle {
    font-size: 0.8rem;
    margin-bottom: 2px;
    font-weight: bold;
    color: #174170;
}

.input,
input[type="text"].input,
input[type="date"].input {
    width: 100%;
    max-width: 500px;
    background: #fafafb;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    font-size: 1rem;
    padding: 12px 15px;
    margin-bottom: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s;
}

/* Upload dropzone - exact match from lite.module.css */
.uploadDropzone {
    width: 100%;
    max-width: 500px;
    background: #fafafa;
    border: 2.5px dashed #ddd;
    border-radius: 12px;
    padding: 32px 18px 28px 18px;
    cursor: pointer;
    text-align: center;
    font-size: 1.13rem;
    color: #888;
    margin: 0 0 12px 0;
    transition:
        border-color 0.18s,
        background 0.18s;
    position: relative;
}

.uploadDropzone:hover,
.uploadDropzone.dragActive {
    border-color: #b2d4f8;
    background: #f8faff;
    color: #359aed;
}

/* Breed size options */
.breedSizeOptions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.breedSizeOption {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.breedSizeOption:hover {
    background-color: #f7fafc;
}

.breedSizeOption input {
    margin-right: 8px;
}

/* Age summary card */
.ageSummaryCard {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.ageSummaryTitle {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.dogAgeText {
    font-size: 1.2rem;
    color: #e53e3e;
    font-weight: bold;
    margin-bottom: 10px;
}

.humanAgeText {
    font-size: 1.5rem;
    color: #38a169;
    font-weight: bold;
    margin: 10px 0;
}

.ageDetailsText {
    font-size: 0.9rem;
    color: #718096;
}

/* Preview canvas - exact match from lite.module.css */
.preview {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1080 / 1920;
    background: #f6f6f8;
    border-radius: 10px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e6e6e6;
    margin: 16px 0 0 0;
    overflow: hidden;
    transform: rotate(2deg);
    transition:
        transform 0.18s,
        opacity 0.3s;
}

.preview:hover {
    transform: rotate(0deg);
}

/* Download button - exact match from lite.module.css */
.downloadButton {
    display: inline-block;
    padding: 12px 30px;
    background: #6db9ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow:
        0.3px 0.4px 0.3px rgba(0, 0, 0, 0.028),
        0.9px 1.3px 1.1px rgba(0, 0, 0, 0.042),
        4px 6px 5px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    transition:
        background 0.15s,
        opacity 0.3s;
}

.downloadButton:hover {
    background: #359aed;
    color: #fff;
}

.downloadButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Language dropdown */
.langSwitcherContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.langDropdown {
    font-size: 15px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 220px;
    color: #2d3748;
    font-weight: 500;
}

.langDropdown:hover {
    border-color: #6db9ff;
}

.langDropdown:focus {
    border-color: #6db9ff;
    box-shadow: 0 0 0 3px rgba(109, 185, 255, 0.1);
}

.langDropdown option {
    padding: 8px;
}

.calculatorSwitcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #2d3748;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.calculatorSwitcher:hover {
    border-color: #6db9ff;
    background: #f8faff;
    color: #2d3748;
}

.calculatorSwitcher img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

/* Explanation section */
.explanationSection {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.explanationTitle {
    font-size: 1.8rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 20px;
    color: #2d3748;
}

.explanationContent {
    text-align: left;
    padding: 20px;
    background: #f8faff;
    border-radius: 10px;
    line-height: 1.6;
}

.explanationContent p {
    margin-bottom: 15px;
}

.explanationContent strong {
    font-weight: 600;
    color: #2d3748;
}

.explanationContent a {
    color: #6db9ff;
    text-decoration: underline;
}

.explanationContent a:hover {
    color: #359aed;
}

/* Promo full width wrapper */
.promo-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 48px;
}

.promo-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.promo-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.promo-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.promo-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.promo-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
}

.promo-cta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-price {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.promo-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #4299e1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s;
}

.promo-btn:hover {
    background: #2b7ac0;
    color: #fff;
}

@media (max-width: 600px) {
    .promo-cta {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 24px;
    }
}

/* Theme Marquee */
.theme-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, #eee, rgba(238, 238, 238, 0));
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, #eee, rgba(238, 238, 238, 0));
}

.theme-marquee-track {
    display: flex;
    width: max-content;
    padding: 1.5rem 0;
    animation: theme-scroll 18s linear infinite;
}

.theme-marquee-wrapper:hover .theme-marquee-track {
    animation-play-state: paused;
}

@keyframes theme-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.theme-slide {
    display: block;
    margin-right: 1rem;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ddd;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    background: #fff;
}

.theme-slide:hover {
    border-color: #4299e1;
}

.theme-slide-img {
    display: block;
    height: 140px;
    width: auto;
    aspect-ratio: 1.595 / 1;
    object-fit: cover;
}

.theme-slide-label {
    font-size: 12px;
    color: #4a5568;
    padding: 4px 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, #f0fff4, rgba(240, 255, 244, 0));
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, #f0fff4, rgba(240, 255, 244, 0));
}

.theme-marquee-track {
    display: flex;
    width: max-content;
    padding: 1.5rem 0;
    animation: theme-scroll 18s linear infinite;
}

.theme-marquee-wrapper:hover .theme-marquee-track {
    animation-play-state: paused;
}

@keyframes theme-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.theme-slide {
    display: block;
    margin-right: 1rem;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #c6f6d5;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    background: #fff;
}

.theme-slide:hover {
    border-color: #38a169;
}

.theme-slide-img {
    display: block;
    height: 140px;
    width: auto;
    aspect-ratio: 1.595 / 1;
    object-fit: cover;
}

.theme-slide-label {
    font-size: 12px;
    color: #276749;
    padding: 4px 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 10;
    pointer-events: none;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(to right, #fffbf0, rgba(255, 251, 240, 0));
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(to left, #fffbf0, rgba(255, 251, 240, 0));
}

.theme-marquee-track {
    display: flex;
    width: max-content;
    padding: 1.5rem 0;
    animation: theme-scroll 18s linear infinite;
}

.theme-marquee-wrapper:hover .theme-marquee-track {
    animation-play-state: paused;
}

@keyframes theme-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.theme-slide {
    display: block;
    margin-right: 1rem;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #feebc8;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    background: #fffdf7;
}

.theme-slide:hover {
    border-color: #ed8936;
}

.theme-slide-img {
    display: block;
    height: 140px;
    width: auto;
    aspect-ratio: 1.595 / 1;
    object-fit: cover;
}

.theme-slide-label {
    font-size: 12px;
    color: #7b5b3a;
    padding: 4px 8px 6px;
    text-align: center;
    white-space: nowrap;
}

/* Loading animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loadingOverlay {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    backdrop-filter: blur(2px);
    transform: rotate(2deg);
}

.loadingContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #4a5568;
}

.loadingSpinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.previewContainer {
    max-width: 300px;
    position: relative;
    display: inline-block;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {

    .formColumn,
    .previewColumn {
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }

    .preview {
        max-width: 100%;
        width: 100%;
    }

    .form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        max-height: none;
    }

    .input,
    .uploadDropzone {
        max-width: 100%;
        width: 100%;
    }

    .downloadButton {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer styles matching distribution-map */
.footer-section-inner {
    background-color: #111827;
}

.footer-copy {
    background-color: #1f2937;
    padding: 10px;
    color: #eee;
    text-align: center;
}

.footer-bottom-logo {
    max-width: 100px;
    display: block;
    margin: auto;
}

.footer-bottom-logo img,
.footer-bottom-logo object {
    width: 100%;
}

.footer-social-media {
    margin: 10px 0 50px;
    text-align: center;
}

.footer-social-media a {
    color: #6c757d;
    text-decoration: none;
}

.footer-social-media a span {
    font-weight: bold;
}

.footer-social-media:hover>a {
    color: #ffffff;
}

.footer-links {
    text-align: center;
    margin-bottom: 30px;
}

.footer-links .footer-link {
    display: inline-block;
    margin: 10px;
}

.footer-links .footer-link a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links .footer-link:hover>a {
    color: #ffffff;
}

@media only screen and (max-width: 550px) {
    .footer-social {
        display: none;
    }

    .footer-links .footer-link {
        display: block;
        width: 100%;
        text-align: left;
    }

    .footer-links {
        margin-bottom: 5px;
    }

    .footer-section-inner .container {
        padding-top: 10px !important;
    }
}
