:root {
    --primary-color: rgb(14, 139, 37);
    --primary-dark: rgb(14, 139, 37);
    --secondary-color: #64748b;
    --accent-color: #262626;
    --background-color: #fff;
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    min-height: 100vh;
    top: 0 !important;
}

.container {
    display: flex;
    min-height: 100vh;

    padding: 1rem;
    max-width: 1380px;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 2rem;
}

.main-content {
    flex: 0 0 70%;
    padding-right: 2rem;
}

.quote-sidebar {
    flex: 0 0 30%;
    position: sticky;
    top: 0;
    height: 90vh;
    background: rgb(235, 247, 235);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    border-radius: 1rem;
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.calculator-section {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculator-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.measurements-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.875rem;
}

input[type="number"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--surface-color);
    color: var(--text-color);
}

input[type="number"]:hover,
input[type="text"]:hover,
select:hover,
textarea:hover {
    border-color: var(--primary-color);
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.woodwork-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.woodwork-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.woodwork-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.woodwork-item h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 600;
}

.woodwork-item h3 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}
.logo img {
    max-width: 180px;
}

.window-entry {
    background: var(--background-color);

    padding: 1.25rem 0px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.window-entry .input-group {
    margin-bottom: 0;
}

.window-entry select.window-condition {
    color: var(--text-color);
    font-weight: 500;
}

.window-entry select.window-condition option[value="light"] {
    color: var(--success-color);
}

.window-entry select.window-condition option[value="medium"] {
    color: var(--text-color);
}

.window-entry select.window-condition option[value="heavy"] {
    color: var(--accent-color);
}

.remove-window {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.remove-window:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.add-more-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-more-btn i {
    font-size: 1rem;
}

.quote-section {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-item.total {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.quote-details {
    margin-bottom: 1.5rem;
}

.toggle-details {
    width: 100%;
    padding: 0.75rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.toggle-details:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
}

.toggle-details i {
    transition: transform 0.3s ease;
}

.toggle-details.active i {
    transform: rotate(180deg);
}

.details-content {
    display: none;
    padding: 1.5rem 0;
}

.details-content.show {
    display: block;
}

.quote-section .button-group {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.quote-section .button-group .btn {
    width: 100%;
    margin-bottom: 1rem;
}

.quote-section .button-group .btn:last-child {
    margin-bottom: 0;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.quote-item span {
    flex: 1;
}

.quote-item .item-cost {
    text-align: right;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 1rem;
}

#woodworkDetails {
    margin: 1rem 0;
}

#woodworkDetails .quote-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

#woodworkDetails .quote-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

#woodworkDetails .quote-item .item-name {
    font-weight: 500;
    color: var(--text-color);
}

#woodworkDetails .quote-item .item-cost {
    font-weight: 500;
    color: var(--primary-color);
}

#woodworkDetails .quote-item .item-details {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

#woodworkDetails h4 {
    margin: 1rem 0 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

#woodworkDetails h4:first-child {
    margin-top: 0;
}

.preparation-steps {
    margin-top: 2rem;
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.preparation-steps h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.preparation-steps ul {
    list-style-type: none;
}

.preparation-steps li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.preparation-steps li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

#generatePDF {
    background-color: var(--primary-color);
    color: white;
    flex: 2;
}

#generatePDF:hover {
    background-color: var(--primary-dark);
}

#resetCalculator {
    background-color: var(--accent-color);
    color: white;
    flex: 1;
}

.button-group {
    flex-direction: column;
    gap: 0px;
}

#resetCalculator:hover {
    background-color: #dc2626;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-color);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
    color: var(--primary-color);
}

.tab-btn:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn.active i {
    color: white;
}

.tab-content {
    border-radius: 0.75rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .main-content {
        flex: 1;
        padding-right: 0;
    }

    .quote-sidebar {
        position: static;
        height: auto;
        width: 100%;
    }

    .measurements-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .calculator-section {
        padding: 1.5rem;
    }

    .woodwork-items {
        grid-template-columns: 1fr;
    }

    .window-entry {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
    .add-btn, .add-more-btn {
        width: 100% !important;
    }
    
    button.remove-wall, .remove-ceiling {
        position: absolute;
        right: 0px;
        top: -6px;
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }
    .tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow: scroll;
    }
    
    button.tab-btn {
        white-space: nowrap;
    }
    .quote-sidebar{
        margin-top: 0px !important;
    }
    
}

.measurements-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wall-entry {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
}

.wall-entry:hover {
}

.remove-wall {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    align-self: center;
}

.remove-wall:hover {
    background: #dc2626;
    transform: scale(1.1);
}

button.remove-ceiling {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    align-self: center;
}

.remove-ceiling:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.ceiling-entry {
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
}

button#addCeiling {
    margin-top: 15px;
}

.page-header {
    background: url(https://www.joist.com/wp-content/uploads/2024/08/hero.jpg);
    padding-top: 100px;
    padding-bottom: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.skiptranslate {
    display: none;
}
.page-header h1 {
    color: #fff;
    margin-bottom: 0px;
}

#addWall {
    margin-top: 1rem;
}

.add-btn, .add-more-btn {
    border: 1px solid #aaa;
    border-style: dashed;
    width: 200px;
    font-weight: 300;
    background: var(--background-color);
    font-size: 13px;
}
select{
    appearance: none;
}

.main-content {
    margin-top: -80px;
}

.quote-sidebar {
    margin-top: -80px;
}

.add-btn i, .add-more-btn i {
}

.ceiling-section {
    margin-top: 20px;
}

/* Header Styles */
.main-header {
    background-color: white;
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Google Translate Widget Styles */
#google_translate_element {
    display: inline-block;
}

.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    color: var(--text-color) !important;
    cursor: pointer !important;
}

.goog-te-gadget-simple:hover {
    background-color: var(--surface-color) !important;
}

.goog-te-menu-value {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.goog-te-menu-value span {
    color: var(--text-color) !important;
}

.goog-te-menu-value:hover {
    text-decoration: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

/* Hide all Google Translate branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget .goog-logo-link {
    display: none !important;
}

.goog-te-gadget .goog-logo-link:link {
    display: none !important;
}

.goog-te-gadget .goog-logo-link:visited {
    display: none !important;
}

.goog-te-gadget .goog-logo-link:hover {
    display: none !important;
}

.goog-te-gadget .goog-logo-link:active {
    display: none !important;
}

.goog-te-gadget img {
    display: none !important;
}

/* Hide "Powered by Translate" text */
.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

.goog-te-gadget .goog-te-combo:after {
    content: none !important;
}

.goog-te-gadget .goog-te-combo:before {
    content: none !important;
}

.goog-te-gadget .goog-te-combo span {
    display: none !important;
}

.goog-te-gadget .goog-te-combo span:after {
    content: none !important;
}

.goog-te-gadget .goog-te-combo span:before {
    content: none !important;
}

/* Hide the language selector arrow */
.goog-te-gadget .goog-te-combo:after {
    display: none !important;
}

/* Ensure no extra spacing */
.goog-te-gadget {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}
button.tab-btn i {
    display: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info {
        display: none;
    }
    
    .header-content {
        gap: 20px;
        justify-content: space-between;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    button.remove-window {
        position: absolute;
        right: 0px;
        top: -6px;
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }
}

.language-selector {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.flag-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.flag-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.flag-btn img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

