/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: #fceceb;
    /* Very subtle warm tint or keep white/gray */
    background: radial-gradient(circle at top left, #f1f5f9, #ffffff);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
        /* Wider gutters on mobile */
    }

    .section-padding {
        padding: 4rem 0;
        /* Tighter vertical spacing */
    }
}

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

.text-primary {
    color: var(--color-primary);
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Modern Pill Button with Glow */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 48, 86, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 86, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    /* Assumes dark background context usually */
}

/* Input Enhancements for Trust & Usability */
input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    /* Neutral border */
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--color-text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 86, 0.1);
    /* Focus ring */
}

/* Valid/Invalid States (if used with classes) */
input.valid {
    border-color: #22c55e;
}

input.invalid {
    border-color: #ef4444;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

/* Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none;
}

/* Sticky Mobile Button */
.sticky-mobile-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    /* Hidden on desktop */
}

.btn-sticky-mobile {
    display: block;
    width: 100%;
    background: #ff6f00;
    /* Orange */
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-sticky-mobile:hover {
    background: #e65100;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sticky-mobile-wrapper {
        display: block;
    }

    /* Add padding to body so button doesn't cover footer content if scrolled to bottom */
    body {
        padding-bottom: 90px;
    }
}