* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

html {
    overflow-y: scroll;
}

.container,
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.interior-container {
    max-width: 48rem;
}

/* 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-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;
}

.main-content {
    flex-grow: 1;
    padding: 2rem 0;
}

.calculator-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e5e7eb;
}

.calculator-section:last-of-type {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.calculator-section .page-title {
    margin-top: 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #4b5563;
    margin-bottom: 2rem;
}

.calculator-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

.calculator-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.calculator-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    background-color: #eff6ff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: transform 0.2s ease-in-out;
}

/* Construction section icons (default blue) */
.calculator-section:first-of-type .card-icon {
    background-color: #f1f5f9;
    color: #0f172a;
}

.calculator-section:nth-of-type(2) .card-icon {
    background-color: #f0fdf4;
    color: #15803d;
}

.calculator-section:nth-of-type(3) .card-icon {
    background-color: #faf5ff;
    color: #6b21a8;
}

.calculator-section:nth-of-type(4) .card-icon {
    background-color: #fff7ed;
    color: #c2410c;
}

.calculator-section:nth-of-type(5) .card-icon {
    background-color: #eff6ff;
    color: #1e40af;
}

.calculator-section:nth-of-type(6) .card-icon {
    background-color: #f0fdfa;
    color: #0f766e;
}

.calculator-section:nth-of-type(7) .card-icon {
    background-color: #ecfdf5;
    color: #047857;
}

.calculator-section:nth-of-type(8) .card-icon {
    background-color: #fef3c7;
    color: #92400e;
}

.calculator-section:nth-of-type(9) .card-icon {
    background-color: #eef2ff;
    color: #3730a3;
}

.calculator-card:hover .card-icon {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Contact Form */

.contact-form {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 16px;        /* Changed from 0.875rem to 16px */
    line-height: 1.25;
    color: #111827;
    background-color: white;
    transition: border-color 0.15s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.submit-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    background-color: #003049;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #002137;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.3);
}

/* Form Message Styles */
.form-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.form-message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.form-message .material-icons {
    font-size: 1.25rem;
}

/* Required field indicator */
.form-label[for*="name"]::after,
.form-label[for="description"]::after,
.form-label[for="usefulness"]::after {
    content: "*";
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Optional field style */
.form-label[for="email"]::after,
.form-label[for="formula"]::after {
    content: " (Optional)";
    color: #6b7280;
    font-weight: normal;
    font-size: 0.75rem;
}

/* Interior Page styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.breadcrumb-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    font-size: 1.25rem;
    color: #9ca3af;
}

.breadcrumb-current {
    color: #6b7280;
    font-size: 0.875rem;
}

.content-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.section-text {
    color: #4b5563;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.section-list {
    list-style-position: outside;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-list li {
    color: #4b5563;
    line-height: 1.625;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.section-list li:last-child {
    margin-bottom: 0;
}

/* Subsection title styling */
.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Ad space styles */
.ad-space {
    margin-top: 2rem;
    height: 6rem;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-text {
    color: #9ca3af;
}

/* Footer styles */
.footer {
    background-color: #f3f4f6;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #4b5563;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
}

.footer-links a:hover {
    color: #111827;
}

/* Responsive styles */
@media (min-width: 768px) {
    /* Tablet and above */
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .nav-text {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-text {
        display: none;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
    
    .container,
    .header-container {
        padding: 0 1rem;
    }
}