/* styles.css */
:root {
    --primary-red: #b93544;
    --primary-blue: #4574b3;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}


/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure navbar and footer never stretch beyond viewport */
.navbar,
.footer {
    max-width: 100%;
    overflow-x: hidden;
}

.sticky-quote-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #dc2626 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Navigation Styles */
.navbar {

    top: 0;
    width: 100%;
    max-height: 80px;
    background: rgba(255, 255, 255, 0.95);

    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 50;
    overflow: visible;
    /* IMPORTANT */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #2c5aa0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-menu.active {
        max-height: 500px;
        /* enough to show items */
        padding: 1rem 0;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.8rem 0;
        color: white;
    }
}

/* Sticky Quote Button */
.sticky-quote-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: all 0.3s ease;
}

.sticky-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Page Switching */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 0px;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0px 0;
    text-align: center;
}

.carousel-container {
    max-width: 1900px;
    width: 100%;
    overflow: hidden;
}

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-header h1 {
    color: #b93544;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-top: 30px;
}

.carousel-header p {
    color: #4574b3;
    font-size: 1.5rem;
    font-weight: 500;
}

.carousel {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* Works in WebKit browsers (Chrome, Edge, Safari) */
.carousel::-webkit-scrollbar {
    height: 10px;
    width: 1700px;
}

.carousel::-webkit-scrollbar-track {
    background: #e2e8f0;
    /* light gray-blue */
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    /* blue-500 */
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    /* creates padding around thumb */
}

.carousel::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
    /* blue-600 */
}

.carousel::-webkit-scrollbar-thumb:active {
    background-color: #1e40af;
    /* blue-800 */
}

.card {
    position: relative;
    min-width: 300px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #333;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
}


.stripe-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 8px,
            rgba(255, 255, 255, 0.1) 8px,
            rgba(255, 255, 255, 0.1) 12px,
            transparent 12px,
            transparent 20px,
            rgba(255, 255, 255, 0.2) 20px,
            rgba(255, 255, 255, 0.2) 24px);
    z-index: 3;
    transition: left 0.8s ease;
    pointer-events: none;
}

.card:hover .stripe-overlay {
    left: 100%;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 4;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;

}

.card-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;

}


@media (max-width: 768px) {
    .card {
        min-width: 280px;
        height: 350px;
    }

    .carousel-header h1 {
        font-size: 2rem;
    }

    .carousel {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .card {
        min-width: 260px;
        height: 320px;
    }

    .carousel-header h1 {
        font-size: 1.8rem;
    }
}



#productsPopup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999999999;
    /* higher than anything in hero */
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.products-popup {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    /* Higher than everything else */
    overflow: visible;
}

/* ========== WHY Q-TORK FEATURES ========== */
.why-q-tork-section {
    background-color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.why-q-tork-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}


.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    width: 280px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h4 {
    margin-top: 1.2rem;
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Gradient Circle Accent */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: #b93544;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px #fff;
}

/* Sticker inside circle */
.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.quote-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0px 0;
    text-align: center;
}

/* Home Page Quote Form Styles */

.home-quote-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
}

.home-quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.quote-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.quote-section-header .text-red {
    color: var(--primary-red);
}

.quote-section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-quote-form {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.home-quote-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;

}

/* Default: stack (mobile & tablet) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* Wide screens (desktop & larger iPads landscape) */
@media (min-width: 1025px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}


.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.quote-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .input-with-unit {
        flex-direction: column;
    }
}

/* Form Sections */
.form-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
}

.quote-form .section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #1a202c;
    font-size: 0.3rem;
    font-weight: 600;
}



/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.required {
    color: #dc3545;
    margin-left: 4px;
    font-weight: 700;
}

/* Form Inputs */
.form-field input,
.form-field select,
.form-field textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: #cbd5e1;
}

.form-field textarea {
    resize: vertical;
    font-family: inherit;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 2;
}

.unit-select {
    flex: 1;
    min-width: 80px;
}

/* Field Notes */
.field-note {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 6px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #2c5aa0;
}

/* Stem Shape Options */
.stem-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.stem-choice {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stem-choice input[type="radio"] {
    display: none;
}

.stem-visual {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.stem-choice:hover .stem-visual {
    border-color: #2c5aa0;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.15);
}

.stem-choice.selected .stem-visual {
    border-color: #2c5aa0;
    background: #f0f4ff;
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.2);
}

.stem-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    position: relative;
}

.round-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2c5aa0;
}

.square-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background: #2c5aa0;
    border-radius: 4px;
}

.double-d-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background: #2c5aa0;
    border-radius: 12px 4px 12px 4px;
}

.stem-visual span {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* Conditional Sections */
.conditional-section {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.conditional-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.form-submit {
    text-align: center;
    padding-top: 24px;
}

.quote-submit-btn {
    background: linear-gradient(135deg, #dc3545 0%, #b91c1c 100%);
    color: white;
    padding: 18px 48px;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.quote-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quote-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 53, 69, 0.4);
}

.quote-submit-btn:hover::before {
    left: 100%;
}

.quote-submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.quote-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-quote-form {
        padding: 36px;
    }

    .quote-section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .home-quote-section {
        padding: 60px 0;
    }

    .home-quote-form {
        padding: 28px;
    }

    .quote-section-header {
        margin-bottom: 40px;
    }

    .quote-section-header h2 {
        font-size: 2rem;
    }

    .quote-section-header p {
        font-size: 1.125rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stem-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .input-group {
        flex-direction: column;
    }

    .unit-select {
        min-width: unset;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .home-quote-form {
        padding: 20px;
        border-radius: 16px;
    }

    .quote-section-header h2 {
        font-size: 1.75rem;
    }

    .form-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .quote-submit-btn {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }
}

.product-categories {
    padding: 2.5rem 1rem;
    background: #fff;
    text-align: center;
}

.product-categories h2 {
    font-size: 2.3rem;
    font-weight: 700;
    /*  color: var(--primary-red);*/
}

.product-categories p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.product-categories .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.product-card {
    width: 355px;
    height: 425px;
    /* wider like the OG */
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card .top-bar {
    height: 4px;
}

.product-card.blue .top-bar {
    background-color: var(--primary-blue);
}

.product-card.red .top-bar {
    background-color: var(--primary-red);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .content {
    padding: 1rem 1.2rem;
    text-align: left;
}

.product-card h4 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.product-card .info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
    margin-top: auto;
    align-items: flex-end;
}

.product-card .info a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.product-card .info a:hover {
    text-decoration: underline;
}

.text-primary-red {
    color: var(--primary-red);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}


.quote-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.quote-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.quote-form h2 {
    color: #1f2937;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
}

/* Form Steps */
/* Form Steps */
.form-step {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #f1f3f4;
}

.form-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.step-title {
    color: #b93544;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: #b93544;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.compulsory {
    color: #dc3545;
    margin-left: 3px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #d1d5db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Input with unit dropdowns */
.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 2;
}

.input-with-unit select {
    flex: 1;
    min-width: 80px;
}

/* Stem shape radio buttons */
.stem-shape-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.stem-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.stem-option:hover {
    border-color: #2c5aa0;
}

.stem-option.selected {
    border-color: #2c5aa0;
    background-color: #f8f9ff;
}

.stem-diagram {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2c5aa0;
}

.stem-option input[type="radio"] {
    display: none;
}

.stem-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Conditional sections */
.conditional-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.conditional-section.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tolerance-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    background: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #4574b3;
}

.submit-btn {
    background: #dc3545;
    color: white;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .company-name {
        font-size: 2rem;
    }

    .stem-shape-group {
        flex-direction: column;
    }

    .input-with-unit {
        flex-direction: column;
    }

    .input-with-unit select {
        min-width: unset;
    }
}

/* Extra footer CSS (optional if you're using Tailwind) */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}


/* styles.css */
.bg-regal-blue {
    background-color: #040134;
}


.products-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.products-popup.show {
    opacity: 1;
    visibility: visible;
}

.products-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background-color: #f9fafb;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.product-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.product-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.product-count {
    font-size: 24px;
    font-weight: 700;
    color: #9ca3af;
    min-width: 40px;
    text-align: right;
}

.nav-menu li {
    position: relative;
}

/* Color coding for different series */
.series-311 {
    color: #60a5fa;
}

.series-612 {
    color: #60a5fa;
}

.series-143 {
    color: #10b981;
}

.series-1710 {
    color: #10b981;
}

.series-234 {
    color: #f59e0b;
}

.series-519 {
    color: #f97316;
}

.series-518 {
    color: #ec4899;
}



.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: slidePattern 20s linear infinite;
}



.corner-l-top-left {
    animation: slideInTopLeft 0.8s ease-out;
}

.corner-l-top-right {
    animation: slideInTopRight 0.8s ease-out 0.2s both;
}

.corner-l-bottom-left {
    animation: slideInBottomLeft 0.8s ease-out 0.4s both;
}

.corner-l-bottom-right {
    animation: slideInBottomRight 0.8s ease-out 0.6s both;
}

.logo {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.tagline {
    animation: fadeInDown 1s ease-out 1.2s both;
}

/* Hover Effects */
.corner-l-top-left:hover,
.corner-l-bottom-left:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.corner-l-top-right:hover,
.corner-l-bottom-right:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.header:hover .logo::after {
    width: 100px;
    transition: width 0.3s ease;
}


.header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

/* Top Left L-Corner Accent */
.corner-l-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
}

.corner-l-top-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 8px;
    background: #b93544;
}

.corner-l-top-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 80px;
    background: #b93544;
}

/* Top Right L-Corner Accent */
.corner-l-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
}

.corner-l-top-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 8px;
    background: #4574b3;
}

.corner-l-top-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 80px;
    background: #4574b3;
}

/* Bottom Left L-Corner Accent */
.corner-l-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
}

.corner-l-bottom-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 8px;
    background: #b93544;
}

.corner-l-bottom-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8px;
    height: 80px;
    background: #b93544;
}

/* Bottom Right L-Corner Accent */
.corner-l-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
}

.corner-l-bottom-right::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 8px;
    background: #4574b3;
}

.corner-l-bottom-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 80px;
    background: #4574b3;
}

/* Header Content Styling */
.name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}



.tagline {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
    max-width: 600px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 30px;
    }

    .corner-l-top-left,
    .corner-l-top-right,
    .corner-l-bottom-left,
    .corner-l-bottom-right {
        width: 60px;
        height: 60px;
    }

    .corner-l-top-left::before,
    .corner-l-top-right::before,
    .corner-l-bottom-left::before,
    .corner-l-bottom-right::before {
        width: 60px;
        height: 6px;
    }

    .corner-l-top-left::after,
    .corner-l-top-right::after,
    .corner-l-bottom-left::after,
    .corner-l-bottom-right::after {
        width: 6px;
        height: 60px;
    }

    .logo {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px;
    }

    .corner-l-top-left,
    .corner-l-top-right,
    .corner-l-bottom-left,
    .corner-l-bottom-right {
        width: 50px;
        height: 50px;
    }

    .corner-l-top-left::before,
    .corner-l-top-right::before,
    .corner-l-bottom-left::before,
    .corner-l-bottom-right::before {
        width: 50px;
        height: 5px;
    }

    .corner-l-top-left::after,
    .corner-l-top-right::after,
    .corner-l-bottom-left::after,
    .corner-l-bottom-right::after {
        width: 5px;
        height: 50px;
    }

    .logo {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.9rem;
    }
}

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(10px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.header-content {
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 1.8rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
    position: relative;
}



.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #1e3a8a);
    transition: left 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    left: 0;
}

.card-title {
    font-size: 1.5rem;
    color: #b11e2b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
}

.card-icon {
    width: 24px;
    height: 24px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
    opacity: 0;
    animation: countUp 2s ease-out forwards;
}

.stat:nth-child(1) {
    animation-delay: 0.2s;
}

.stat:nth-child(2) {
    animation-delay: 0.4s;
}

.stat:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #dc2626;
    display: block;
}

.stat-label {
    color: #1e3a8a;
    font-weight: 600;
    margin-top: 0.5rem;
}

.vision-mission {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    color: white;
    padding: 4rem 2rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;

    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: scale(1.05);
}

.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}


.company-overview {
    text-align: center;
    background-color: white;
}

.company-overview p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }
}


.footer-address {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-address .emoji {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.footer-address .address-lines {
    display: block;
}


.social-icons {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 25px;
}

.social-icons a {
    color: #ffffff;
    font-size: 24px;
    transition: color 0.3s ease;
}



/* Change to theme color or per platform */
a[href*="linkedin"]:hover {
    color: #0077b5;
}

a[href*="youtube"]:hover {
    color: #ff0000;
}

a[href*="instagram"]:hover {
    color: #cc3fa4;
}

a[href*="facebook"]:hover {
    color: #1877f2;
}