* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hidden {
    display: none;
}

/* Header styles */
.header {
    background-color: #003049;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 0.25rem;
}

.logo-icon {
    font-size: 2rem;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.beta-badge {
    background-color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 0.25rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #bfdbfe;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding-top: 0px;
    margin: 0;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    position: relative;
    margin-top: 20px;
}

h1 {
    background-color: #fcbf49;
    margin: -24px -24px 24px -24px;
    padding: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Form styles */
.calculator-form {
    padding: 0;
}

.form-group {
    margin-bottom: 16px;
    background-color: white;
    border-radius: 4px;
    padding: 0;
    border: none;
    box-shadow: none;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Row and Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.row.center {
    justify-content: center;
}

.col {
    flex: 1;
    min-width: 200px;
}

/* Input styles */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s;
    color: #333;
}

.form-input:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Radio button groups */
.inline-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inline-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    cursor: pointer;
}

.inline-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Imperial height inputs */
.input-unit-group {
    display: flex;
    gap: 8px;
}

.input-unit-group .form-input {
    flex: 1;
}

/* Button styles */
button {
    width: 100%;
    padding: 8px 16px;
    background: #003049;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

button:hover {
    background: #002038;
}

/* Results section */
.results {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.results-content {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #003049;
}

/* FAQ Section */
.faq-section {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: #003049;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
}

.faq-question {
    color: #003049;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-answer {
    color: #334155;
    font-size: 16px;
    line-height: 1.5;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul {
    list-style-type: none;
    padding-left: 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.faq-answer ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #003049;
}

/* Animation */
.fade-in {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries */
@media (max-width: 640px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .beta-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
    
    .header-content {
        height: 3.5rem;
    }
    
    .calculator-wrapper {
        padding: 16px;
    }
    
    h1 {
        margin: -16px -16px 16px -16px;
        font-size: 20px;
    }

    .faq-section {
        padding: 16px;
        margin-top: 24px;
    }
    
    .faq-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .faq-grid {
        gap: 16px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}