body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
    /* Added for better readability */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    /* Equivalent to p-4 */
    background-color: #0d3b36;
    border-bottom: 1px solid #ddd;
    position: sticky;
    /* Changed from relative to sticky for better behavior on scroll */
    top: 0;
    /* Important for sticky positioning */
    z-index: 10;
    width: 100%;
    /* Ensure it takes full width */
    box-sizing: border-box;
    /* Include padding in width */
}

.navbar .logo {
    margin-right: 4em;
}

.navbar .logo img {
    max-height: 50px;
    height: auto;
    width: auto;
    aspect-ratio: 118 / 53;
}

.navbar .nav-links {
    display: flex;
    gap: 1.5em;
    /* Equivalent to gap-x-6 */
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #8a6d46;
    /* text-main color */
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #7c6242;
    /* Slightly darker on hover */
}

/* Burger menu */
.burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 11;
    display: none;
    /* Hidden by default for desktop */
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 8px;
}

.line {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: background-color 0.5s ease;
}

/* Main content container */
/* The .bg-white class is used for the main content block containing the form and "How it works" section */
.bg-white {
    background-color: #fff;
    width: 80%;
    padding: 2rem;
    /* Equivalent to p-8 */
    border-radius: 0.5rem;
    /* Equivalent to rounded-lg */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Equivalent to shadow-xl */
    max-width: 42rem;
    /* Equivalent to max-w-2xl (672px) */
    margin-left: auto;
    /* Center the block */
    margin-right: auto;
    /* Center the block */
    margin-bottom: 2rem;
    /* Equivalent to mb-8 */
    margin-top: 6rem;
    /* Equivalent to mt-8 */
    box-sizing: border-box;
    /* Crucial for responsive padding/width */
}

/* Headings */
.text-3xl {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    /* Responsive heading */
    line-height: 2.25rem;
    /* Equivalent to leading-9 */
    margin-top: 2rem;
}

.font-bold {
    font-weight: 700;
    /* Equivalent to font-bold */
}

.text-main {
    color: #0d3b36;
    /* Your primary text color */
}

.text-center {
    text-align: center;
    /* Equivalent to text-center */
}

.mb-6 {
    margin-bottom: 1.5rem;
    /* Equivalent to mb-6 */
}

/* Paragraphs */
.text-gray-600 {
    color: #4b5563;
    margin-top: 4rem;
}

/* Form */
.space-y-6>*:not(:first-child) {
    margin-top: 1.5rem;
    /* Equivalent to space-y-6 */
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
    /* Equivalent to text-sm (14px) */
    line-height: 1.25rem;
    /* Equivalent to leading-5 */
}

.font-medium {
    font-weight: 500;
    /* Equivalent to font-medium */
}

.mb-1 {
    margin-bottom: 0.25rem;
    /* Equivalent to mb-1 */
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    /* Equivalent to p-3 */
    border: 1px solid #d1d5db;
    /* Equivalent to border border-gray-300 */
    border-radius: 0.375rem;
    /* Equivalent to rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Equivalent to shadow-sm */
    font-size: 0.875rem;
    /* Equivalent to sm:text-sm */
    line-height: 1.25rem;
    /* Equivalent to sm:leading-5 */
    box-sizing: border-box;
    /* Ensures padding doesn't increase total width */
}

.form-input::placeholder {
    color: #6b7280;
    /* Placeholder color */
}

textarea.form-input {
    resize: vertical;
    /* Allow vertical resizing for textareas */
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.ml-2 {
    margin-left: 0.5rem;
    /* Equivalent to ml-2 */
}

.text-gray-500 {
    color: #6b7280;
    /* Equivalent to text-gray-500 */
}

.hover\:text-gray-700:hover {
    color: #374151;
    /* Equivalent to hover:text-gray-700 */
}

.w-5 {
    width: 1.25rem;
    /* Equivalent to w-5 */
}

.h-5 {
    height: 1.25rem;
    /* Equivalent to h-5 */
}

.mr-1 {
    margin-right: 0.25rem;
    /* Equivalent to mr-1 */
}

.file\:mr-4::file-selector-button {
    margin-right: 1rem;
    /* Equivalent to file:mr-4 */
}

.file\:py-2::file-selector-button {
    padding-top: 0.5rem;
    /* Equivalent to file:py-2 */
    padding-bottom: 0.5rem;
    /* Equivalent to file:py-2 */
}

.file\:px-4::file-selector-button {
    padding-left: 1rem;
    /* Equivalent to file:px-4 */
    padding-right: 1rem;
    /* Equivalent to file:px-4 */
}

.file\:rounded-full::file-selector-button {
    border-radius: 9999px;
    /* Equivalent to file:rounded-full */
}

.file\:border-0::file-selector-button {
    border-width: 0;
    /* Equivalent to file:border-0 */
}

.file\:text-sm::file-selector-button {
    font-size: 0.875rem;
    /* Equivalent to file:text-sm */
    line-height: 1.25rem;
    /* Equivalent to file:text-sm */
}

.file\:font-semibold::file-selector-button {
    font-weight: 600;
    /* Equivalent to file:font-semibold */
}

.file\:bg-gray-100::file-selector-button {
    background-color: #f3f4f6;
    /* Equivalent to file:bg-gray-100 */
}

.file\:text-main::file-selector-button {
    color: #0d3b36;
    /* Equivalent to file:text-main */
}

.hover\:file\:bg-gray-200:hover::file-selector-button {
    background-color: #e5e7eb;
    /* Equivalent to hover:file:bg-gray-200 */
}

.space-x-4>*:not(:first-child) {
    margin-left: 1rem;
    /* Equivalent to space-x-4 */
}

.hidden {
    display: none;
}

.mt-2 {
    margin-top: 0.5rem;
    /* Equivalent to mt-2 */
}

/* Buttons */
.btn-primary {
    background-color: #8a6d46;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    /* Equivalent to w-full */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    /* Equivalent to px-8 */
    padding-right: 2rem;
    /* Equivalent to px-8 */
    padding-top: 0.75rem;
    /* Equivalent to py-3 */
    padding-bottom: 0.75rem;
    /* Equivalent to py-3 */
    border-width: 1px;
    /* Equivalent to border */
    border-color: transparent;
    /* Equivalent to border-transparent */
    font-size: 1rem;
    /* Equivalent to text-base */
    line-height: 1.5rem;
    /* Equivalent to leading-6 */
    font-weight: 500;
    /* Equivalent to font-medium */
    border-radius: 0.375rem;
    /* Equivalent to rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Equivalent to shadow-sm */
    color: #fff;
    /* Equivalent to text-white */
    outline: 2px solid transparent;
    /* Equivalent to focus:outline-none */
    outline-offset: 2px;
    /* Equivalent to focus:ring-offset-2 */
}

.btn-primary:hover {
    background-color: #7c6242;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 109, 70, 0.4);
    border-color: #8a6d46;
}

.btn-secondary {
    color: #0d3b36;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    /* Equivalent to text-sm */
    font-weight: 500;
    /* Equivalent to font-medium */
    padding-top: 0.25rem;
    /* Equivalent to py-1 */
    padding-bottom: 0.25rem;
    /* Equivalent to py-1 */
    padding-left: 0.75rem;
    /* Equivalent to px-3 */
    padding-right: 0.75rem;
    /* Equivalent to px-3 */
    border-radius: 0.375rem;
    /* Equivalent to rounded-md */
    border: 1px solid #d1d5db;
    /* Add border to btn-secondary for better visual */
    background-color: #fff;
    /* Default background */
}

.btn-secondary:hover {
    background-color: #f0f2f5;
}

.justify-center {
    justify-content: center;
}

.pt-4 {
    padding-top: 1rem;
    /* Equivalent to pt-4 */
}

/* Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Message Box */
.message-box {
    margin-top: 2rem;
    /* Equivalent to mt-8 */
    padding: 1rem;
    /* Equivalent to p-4 */
    border-radius: 0.375rem;
    /* Equivalent to rounded-md */
    text-align: center;
    /* Equivalent to text-center */
}

.message-box p {
    font-weight: 500;
    /* Equivalent to font-medium */
}

.bg-green-100 {
    background-color: #d1fae5;
    /* Equivalent to bg-green-100 */
}

.text-green-800 {
    color: #065f46;
    /* Equivalent to text-green-800 */
}

.bg-red-100 {
    background-color: #fee2e2;
    /* Equivalent to bg-red-100 */
}

.text-red-800 {
    color: #991b1b;
    /* Equivalent to text-red-800 */
}

/* How it works section */
.mb-16 {
    margin-bottom: 4rem;
    /* Equivalent to mb-16 */
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
    /* Equivalent to gap-8 */
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.how-it-works-step:hover {
    transform: translateY(-5px);
}

.number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.bg-blue-100 {
    background-color: #dbeafe;
    /* Equivalent to bg-blue-100 */
}

.text-blue-600 {
    color: #2563eb;
    /* Equivalent to text-blue-600 */
}

.bg-green-100 {
    background-color: #d1fae5;
    /* Equivalent to bg-green-100 */
}

.text-green-600 {
    color: #059669;
    /* Equivalent to text-green-600 */
}

.bg-purple-100 {
    background-color: #ede9fe;
    /* Equivalent to bg-purple-100 */
}

.text-purple-600 {
    color: #7c3aed;
    /* Equivalent to text-purple-600 */
}

.bg-orange-100 {
    background-color: #fff7ed;
    /* Equivalent to bg-orange-100 */
}

.text-orange-600 {
    color: #ea580c;
    /* Equivalent to text-orange-600 */
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}

footer p {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.box-container .box {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.box-container .box .share {
    margin-top: 1rem;
}

.box-container .box .share a {
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    border-radius: 3%;
    font-size: 1.7rem;
    background-color: #0d3b36;
    /* Using main color for social icons */
    color: #fff;
    margin-right: .3rem;
    text-align: center;
    display: inline-block;
    /* Ensure they behave like block for sizing */
}

.box-container .box .link {
    font-size: 1.7rem;
    line-height: 2;
    color: #0d3b36;
    padding: .5rem 0;
    display: block;
    text-decoration: underline;
}

.box-container .box .share a:hover {
    background-color: #333;
    /* Darker on hover */
}

footer .box-container .box .link:hover {
    color: #333;
    text-decoration: underline;
}

.light-text {
    font-size: 0.6rem;
    font-weight: 100;
    color: gray;
}

@keyframes subtle-flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Buzz animation */
@keyframes buzz {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

.burger .line {
    animation: subtle-flash 1.5s infinite;
}

.buzzing {
    animation: buzz 0.5s ease-in-out infinite;
}

.warning-message-section {
    background-color: #fff3cd;
    /* Light yellow */
    border: 1px solid #ffeeba;
    /* Slightly darker yellow border */
    color: #856404;
    /* Dark yellow text */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: left;
}

.warning-message-section .warning-icon {
    color: #856404;
    margin-right: 10px;
}

.confirmation-container {
    /* Renamed to avoid conflict with general .container if any */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    /* Center the container horizontally */
    margin-top: calc(70px + 20px);
    /* Adjust margin-top based on navbar height + desired gap */
    /* You might need to adjust '70px' based on the actual rendered height of your navbar */
    /* A safer approach for margin-top is explained below. */
}

/* Styles for h1 on confirmation page */
.confirmation-container h1 {
    color: #0d3b36;
    /* main */
    margin-bottom: 20px;
}

/* Styles for p on confirmation page */
.confirmation-container p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Details section on confirmation page */
.details-section {
    text-align: left;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

.details-section p {
    margin-bottom: 8px;
}

.details-section strong {
    color: #0d3b36;
}

/* Button on confirmation page (already have btn-primary, so you can likely reuse) */
.confirmation-button {
    /* Renamed if different from general .button */
    display: inline-block;
    background-color: #8a6d46;
    /* text-main */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.confirmation-button:hover {
    background-color: #7c6242;
}

/* Error message section on confirmation page */
.error-message-section {
    background-color: #ffe0e0;
    color: #cc0000;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffb3b3;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    /* Center the error block horizontally */
    margin-top: calc(70px + 20px);
    /* Same as above, adjust margin */
}

.error-message-section .error-title {
    color: #cc0000;
}

.error-message-section .error-icon {
    margin-right: 10px;
}

.warning-message-section {
    background-color: #fff3cd;
    /* Svetlo žltá */
    border: 1px solid #ffeeba;
    color: #856404;
    /* Tmavšia žltá pre text */
    padding: 15px;
    margin-top: 20px;
    /* Odsadenie od formulára */
    margin-bottom: 10px;
    /* Odsadenie od tlačidla */
    border-radius: 8px;
    /* Zaoblené rohy ako zvyšok stránky */
    text-align: center;
}

/* Štýl pre deaktivované tlačidlo */
.btn-primary:disabled {
    background-color: #cccccc;
    /* Sivá farba */
    color: #666666;
    cursor: not-allowed;
    /* Zobrazí ikonu "zákaz" pri prejdení myšou */
    transform: none;
    /* Vypne hover efekt */
    box-shadow: none;
    /* Vypne tieň */
}

.btn-primary:disabled:hover {
    background-color: #cccccc;
    /* Zabezpečí, že sa farba nezmení ani pri hover */
    transform: none;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
    .md\:w-auto {
        width: auto;
        /* Equivalent to md:w-auto */
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Equivalent to md:grid-cols-2 */
    }
}

@media screen and (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        /* Equivalent to lg:grid-cols-4 */
    }
}

/* Specific Mobile Styles (up to 900px, which covers tablets and smaller desktops) */
@media screen and (max-width: 900px) {
    .navbar {
        flex-direction: row;
        /* Keep logo and burger on one row for better mobile layout */
        justify-content: space-between;
        /* Space out logo and burger */
        padding: 1rem;
        position: fixed;
        /* Always fixed at the top on mobile */
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar .logo {
        margin-right: 0;
        margin-bottom: 0;
    }

    .navbar .nav-links {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        position: fixed;
        /* Fixed position for mobile nav */
        top: var(--navbar-total-height, 80px);
        /* Use CSS variable set by JS or a default */
        left: 0;
        background-color: #0d3b36;
        /* Dark background for mobile menu */
        border-top: 1px solid #ddd;
        text-align: center;
        z-index: 9;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding-bottom: 1rem;
        height: calc(100vh - var(--navbar-total-height, 80px));
        /* Full height minus header */
        overflow-y: auto;
        /* Enable scrolling for nav links if content is tall */
        transition: transform 0.3s ease-out;
        /* Smooth transition for slide-in/out */
        transform: translateY(-100%);
        /* Start off-screen */
    }

    .navbar .nav-links.active {
        display: flex;
        transform: translateY(0);
        /* Slide in */
    }

    .navbar .nav-links a {
        padding: 15px 0;
        /* More padding for easier tapping */
        color: #fff;
        /* White text for mobile nav links */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Lighter separator */
    }

    .navbar .nav-links a:last-child {
        border-bottom: none;
    }

    .navbar .nav-links a:hover {
        background-color: #1a4d47;
        /* Darker on hover */
    }

    .burger {
        display: flex;
        /* Show burger menu on mobile */
        position: relative;
        /* Position relative to navbar */
        top: auto;
        right: auto;
        margin-bottom: 0;
    }

    .text-3xl {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        /* Responsive heading */
        line-height: 2.25rem;
        /* Equivalent to leading-9 */
        margin-top: 12rem;
    }

    .text-gray-600 {
        color: #4b5563;
        margin-top: 4rem;
    }

    /* Adjust main content margin when nav is active */
    body.nav-active .bg-white {
        margin-top: calc(var(--navbar-total-height, 80px) + 2rem);
        /* Push content down by navbar height + its original top margin */
        transition: margin-top 0.3s ease-in-out;
    }

    /* General mobile adjustments for form and sections */
    .bg-white,
    .mb-16 {
        width: 90%;
        /* Wider on smaller screens */
        padding: 1rem;
        /* Less padding */
    }

    .how-it-works-step {
        padding: 1rem;
        /* Adjust step padding */
    }

    .confirmation-container h1 {
        color: #0d3b36;
        /* main */
        margin-bottom: 20px;
        margin-top: 6rem;
    }

    .confirmation-container,
    .error-message-section {
        margin-top: calc(var(--navbar-total-height, 80px) + 20px);
        /* Use CSS variable for responsive header height */
        padding: 20px;
        /* Adjust padding for smaller screens */
        width: 90%;
        /* Make it wider on smaller screens */
    }

    /* For image styling within confirmation details */
    .details-section img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-top: 10px;
    }
}

/* Smaller mobile screens (e.g., phones) */
@media screen and (max-width: 550px) {

    .burger {
        top: 15px;
        /* Adjust burger position */
        right: 15px;
    }

    .box-container {
        grid-template-columns: 1fr;
        /* Stack footer boxes on very small screens */
    }

    .box-container .box {
        text-align: center;
        /* Center footer box content */
    }

    .light-text {
        font-size: 0.8rem;
    }

    .text-3xl {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        /* Responsive heading */
        line-height: 2.25rem;
        /* Equivalent to leading-9 */
        margin-top: 14rem;
    }

    .text-gray-600 {
        color: #4b5563;
        margin-top: 4rem;
    }
}