/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 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 and wrapper */
.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;
}

/* Header */
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 elements */
.input-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

/* Enhanced Input and Select Styling */
input[type="number"],
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s;
}

input[type="number"]:hover,
select:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Enhanced Radio Button Styling */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: -1px;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    border-color: #003049;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #003049;
    border-radius: 50%;
}

input[type="radio"]:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Enhanced Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    top: -1px;
    transition: all 0.2s ease;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    border-color: #003049;
    background-color: #003049;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Enhanced Select/Dropdown Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23003049' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Radio and Checkbox styles */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    background-color: rgba(0, 48, 73, 0.05);
}

/* Header with checkbox */
.header-with-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Grid layouts */
.dimensions-grid,
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Results section */
.results {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.results h3 {
    color: #003049;
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    font-weight: 600;
    border-bottom: 2px solid #bae6fd;
}

.results-section {
    margin-bottom: 12px;
}

.results-section:last-child {
    margin-bottom: 0;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.flex-between span:first-child {
    color: #003049;
    font-size: 16px;
}

.font-medium {
    font-weight: 600;
    color: #003049;
    font-size: 16px;
}

.border-top {
    border-top: 1px solid #bae6fd;
    padding-top: 12px;
    margin-top: 12px;
}

/* Reset Button */
.reset-button {
    width: 100%;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    transition: all 0.2s;
}

.reset-button:hover {
    background: #f5f5f5;
    border-color: #003049;
}

/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Hide elements */
.hidden {
    display: none;
}

/* FAQ Section Styles */
.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-item h3 {
    color: #003049;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-content p {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.faq-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.faq-content li {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    padding: 4px 0 4px 20px;
    position: relative;
}

.faq-content li::before {
    content: "•";
    color: #003049;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive adjustments */
@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;
    }
    
    .calculator-grid,
    .dimensions-grid {
        gap: 12px;
    }
    
    .results {
        padding: 12px;
    }
	
	.flex-between {
       padding: 8px 0;
       gap: 8px;
   }
    
    .faq-section {
        padding: 16px;
        margin-top: 24px;
    }

    .faq-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .faq-grid {
        gap: 16px;
    }

    .faq-item {
        padding: 12px;
    }

    .faq-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .faq-content p,
    .faq-content li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
   .header {
       position: fixed;
   }
   
   body {
       padding-top: 3.5rem;
   }
   
   .logo-icon {
       font-size: 1.5rem;
   }
}