:root {
    /* Main color palette */
    --color-bg-dark: #0F0033;
    /* Dark background */
    --color-navbar: #250070;
    /* Darker navbar  #1a0f3d*/
    --color-primary: #4302B2;
    /* Primary purple */
    --color-secondary: #00EEFF;
    /* Secondary purple */
    --color-tertiary: #BCF910;
    /* Bright cyan */
    /* --color-accent: #6B0FDB; */
    --color-accent: #5010bf;
    /* Accent purple */
    --color-card-bg: #F3EDE1;
    /* Light cream card background */
    --color-card-border: rgba(26, 15, 61, 0.08);

    /* Text colors */
    --color-white: #FFFFFF;
    --color-text-primary: #1a1a1a;
    /* Almost black text */
    --color-text-secondary: #4a4a4a;
    /* Secondary text */
    --color-text-muted: #7a7a7a;
    /* Muted text */
    --color-text-light: rgba(255, 255, 255, 0.95);
    /* --color-text-light: #F3EDE1; */
    /* Form colors */
    --color-input-bg: #FFFFFF;
    --color-input-border: #e0d9c8;
    --color-input-focus: var(--color-primary);
    --color-placeholder: #888;
    --color-input-readonly: #f8f6f1;
    --color-input-autofill: #EEE6E1;
    --color-hover-light: #F7F4ED;

    /* Status colors */
    --color-error: #dc3545;
    --color-success: #28a745;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg-dark);
    min-height: 100vh;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Text selection */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(67, 2, 178, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 15, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar */
.navbar {
    background: var(--color-navbar);
    padding: 0.75rem 2rem;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.5s ease-out;
    transition-delay: 0s;
}

/* Navbar when scrolled */
.navbar.navbar-scrolled {
    padding: 0.5rem 2rem;
    height: 46px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease-out;
    transition-delay: 0s;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-white);
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.5s ease-out;
}

.navbar.navbar-scrolled .navbar-logo {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
}

.navbar-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.5s ease-out;
}

.navbar.navbar-scrolled .navbar-title {
    font-size: 1rem;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.5s ease-out;
    font-size: 0.9rem;
}

.navbar.navbar-scrolled .navbar-links a {
    font-size: 0.87rem;
}

.navbar-links a:hover {
    color: var(--color-white);
}

/* Desktop Navigation */
.desktop-only {
    display: flex;
}

/* Burger Menu - Hidden by default */
.burger-container {
    display: none;
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
    transition: all 0.5s ease-out;
}

.burger {
    width: 20px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.burger .bar {
    width: 100%;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
    pointer-events: none;
}

.burger .bar-top {
    top: 0;
}

.burger .bar-bottom {
    bottom: 0;
}

/* Mobile Menu - Hidden inside navbar */
.mobile-menu {
    display: none;
    position: relative;
    padding: 0 2rem;
    list-style: none;
    margin: 0;
}

.mobile-menu .menu-item {
    border-bottom: 1px solid rgba(0, 238, 255, 0.15);
    margin-top: 5px;
    transform: scale(1.15) translateY(-30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0.01, 0.165, 0.99),
        opacity 0.6s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.mobile-menu .menu-item:nth-child(1) {
    margin-top: 2rem;
    transition-delay: 0.49s;
}

.mobile-menu .menu-item:nth-child(2) {
    transition-delay: 0.42s;
}

.mobile-menu .menu-item:nth-child(3) {
    transition-delay: 0.35s;
}

.mobile-menu .menu-item a {
    display: block;
    position: relative;
    color: var(--color-text-light);
    font-weight: 200;
    text-decoration: none;
    font-size: 22px;
    line-height: 2.35;
    width: 100%;
    /* transition: color 0.2s ease; */
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu .menu-item a:hover {
    color: var(--color-secondary);
    transform: translateX(8px);
}

/* Menu Open State - Navbar expands */
.navbar.menu-open {
    height: 100vh;
    background: var(--color-navbar);
    transition: all 0.5s ease-in, background 0.5s ease-in;
    transition-delay: 0.2s;
}

.navbar.menu-open .burger-container {
    transform: rotate(90deg);
    transition: transform 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.navbar.menu-open .burger .bar {
    transition: all 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
    transition-delay: 0.2s;
}

.navbar.menu-open .burger .bar-top {
    top: 5px;
    transform: rotate(45deg);
}

.navbar.menu-open .burger .bar-bottom {
    bottom: 5px;
    transform: rotate(-45deg);
}

.navbar.menu-open .mobile-menu .menu-item {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.navbar.menu-open .mobile-menu .menu-item:nth-child(1) {
    transition-delay: 0.27s;
}

.navbar.menu-open .mobile-menu .menu-item:nth-child(2) {
    transition-delay: 0.34s;
}

.navbar.menu-open .mobile-menu .menu-item:nth-child(3) {
    transition-delay: 0.41s;
}

/* Responsive Breakpoint */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .burger-container {
        display: block;
    }

    .navbar.navbar-scrolled .burger-container {
        width: 30px;
        height: 30px;
    }

    .mobile-menu {
        display: block;
    }

    /* Hide navbar title on very small screens */
    @media (max-width: 480px) {
        .navbar-title {
            display: none;
        }
    }

    /* Adjust hero section padding for mobile */
    .hero-section {
        padding-top: 120px;
    }
}

/* Main container */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-top: 5rem;
    position: relative;
    z-index: 1;
}

/* Hero Section - Simplified */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.45;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: rgba(67, 2, 178, 0.3);
    border: 1px solid rgba(67, 2, 178, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon::after {
    content: '✓';
    color: var(--color-text-light);
    font-size: 0.65rem;
}

/* Form Card - Compact */
.form-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h2 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Compact form layout */
.form-group {
    margin-bottom: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.4rem 0.75rem 0.5rem 0.75rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    line-height: 1.22;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-input-focus);
    box-shadow: 0 0 0 3px rgba(67, 2, 178, 0.08);
}

.form-group input[readonly] {
    background: var(--color-input-readonly);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-input-autofill) inset;
    box-shadow: 0 0 0px 1000px var(--color-input-autofill) inset;
    -webkit-text-fill-color: var(--color-text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%234a4a4a' d='M5 7L2 4h6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2rem;
}

.form-group select option:hover {
    background: var(--color-hover-light) !important;
}

/* Address Autocomplete Dropdown */
.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-input-border);
    transition: background-color 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--color-hover-light);
}

.autocomplete-item .suggestion-text {
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.autocomplete-item .suggestion-text b {
    color: var(--color-primary);
    font-weight: 600;
}

.autocomplete-loading {
    padding: 0.75rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.autocomplete-no-results {
    padding: 0.75rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-button {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: 0.88rem;
    line-height: 1.5;
    min-height: 0;
    height: auto;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
}

.custom-dropdown-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.22;
}

.custom-dropdown-button:hover {
    border-color: var(--color-input-focus);
}

.custom-dropdown-button:focus,
.custom-dropdown-button[aria-expanded="true"] {
    border-color: var(--color-input-focus);
    box-shadow: 0 0 0 3px rgba(67, 2, 178, 0.08);
}

.custom-dropdown-arrow {
    margin-left: 0.5rem;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.custom-dropdown-arrow svg {
    width: 10px;
    height: 10px;
}

.custom-dropdown-button[aria-expanded="true"] .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown-list.open {
    display: block;
}

.custom-dropdown-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    color: var(--color-text-primary);
    font-size: 0.88rem;
}

.custom-dropdown-option:hover {
    background: var(--color-hover-light);
    /* background: var(--color-primary);
    color: var(--color-white); */
}

.custom-dropdown-option.selected {
    background: rgba(67, 2, 178, 0.08);
    font-weight: 500;
    color: var(--color-primary);
}

.custom-dropdown-option.selected:hover {
    background: var(--color-hover-light);
}

/* Scrollbar styling for dropdown */
.custom-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
    background: var(--color-input-readonly);
    border-radius: 0 6px 6px 0;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(67, 2, 178, 0.2);
    border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 2, 178, 0.3);
}

/* Compact input with buttons */
.input-with-buttons {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.input-with-buttons input {
    flex: 1;
    text-align: center;
}

.btn-adjust {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-input-border);
    background: var(--color-white);
    color: var(--color-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-adjust:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Find Address Button */
.btn-find-address {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.btn-find-address:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 2, 178, 0.3);
}

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

/* Map Container */
.map-container {
    width: 100%;
    height: 330px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--color-input-border);
}

/* Submit button - Elegant */
.btn-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.btn-submit:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 2, 178, 0.3);
}

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

/* Info Icon and Tooltip */
.info-icon {
    display: inline-block;
    position: relative;
    margin-left: 5px;
    color: var(--color-primary);
    cursor: help;
    vertical-align: middle;
}

.info-icon svg {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: -1px;
}

.info-icon .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(67, 2, 178, 0.1);
    padding: 0.7rem;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.75rem;
    color: var(--color-text-primary);
}

/* Default: tooltip above */
.info-icon .tooltip {
    bottom: 125%;
}

.info-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Tooltip below when flipped */
.info-icon .tooltip.tooltip-below {
    bottom: auto;
    top: 125%;
}

.info-icon .tooltip.tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent white transparent;
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip-content h4 {
    margin: 0 0 0.4rem 0;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(67, 2, 178, 0.1);
    padding-bottom: 0.3rem;
}

.standard-section {
    margin-bottom: 0.4rem;
}

.standard-section:last-child {
    margin-bottom: 0;
}

.standard-section strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.standard-section ul {
    margin: 0;
    padding-left: 1rem;
    list-style-type: disc;
}

.standard-section li {
    margin-bottom: 0.1rem;
    line-height: 1.2;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
}

/* Simple tooltip variant */
.tooltip-simple .tooltip-content {
    text-align: center;
    padding: 0.2rem;
}

/* Result section - Compact */
.result-section {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-section h2 {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
}

.result-main {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(67, 2, 178, 0.03), rgba(107, 15, 219, 0.03));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(67, 2, 178, 0.08);
}

.value-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-display .label {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.value-display .value {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 0.25rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.detail-row:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(67, 2, 178, 0.15);
}

.detail-row .label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-row .value {
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 0;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(67, 2, 178, 0.1);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

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

.loading p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Error message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.error-message p {
    color: var(--color-error);
    font-size: 0.9rem;
    margin: 0;
}

/* Disclaimer */
.disclaimer {
    background: rgba(67, 2, 178, 0.05);
    border: 1px solid rgba(67, 2, 178, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.disclaimer p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.disclaimer strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {

    /* Reduce font sizes */
    body {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-features {
        font-size: 0.8rem;
    }

    .form-row,
    .form-row-three {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-card h3 {
        font-size: 1.1rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .custom-select,
    .form-input {
        font-size: 0.9rem;
    }

    .value-display .value {
        font-size: 2rem;
    }

    .value-display .label {
        font-size: 0.85rem;
    }

    /* Footer links to 2 rows */
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        max-width: 280px;
        margin: 0.8rem auto 0;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}