/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    height: 100%;
}

body { 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */
.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto;    
    padding: 40px 20px; 
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(14, 87, 29, 0.1); /* Very light version of your brand green */
    color: #0e571d;                         /* Solid brand green for the text */
    font-size: 0.75rem;                     /* Small and discrete */
    font-weight: 700;                       /* Bold to ensure readability */
    text-transform: uppercase;              /* Professional "label" look */
    letter-spacing: 1.2px;                  /* Improves readability for small caps */
    border-radius: 50px;                    /* Fully rounded "pill" shape */
    margin-bottom: 10px;                    /* Space between badge and H1 */
    border: 1px solid rgba(14, 87, 29, 0.2);/* Subtle border to give it definition */
}

/* Contact Page Styling */

.contact-details-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}

.contact-methods-list {
    flex: 1; /* Takes up the left side */
}

.contact-inline-image {
    flex: 0 0 350px; /* Sets a fixed width for the image container */
}

.side-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: block;
}

/* Ensure it stacks on mobile so the flag/numbers have room */
@media (max-width: 600px) {
    .contact-details-flex {
        flex-direction: column;
    }
    .contact-inline-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.phone-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uk-number-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.flag-icon {
    font-size: 1.4rem; /* Makes the Union Jack clear */
    line-height: 1;
}

.free-phone-label {
    font-weight: 600;
    color: #0e571d; /* Your brand green */
    font-size: 0.9rem;
    text-transform: uppercase;
}

.primary-number {
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

/* International row styling */
.intl-number-row {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 5px;
    padding-left: 32px; /* Aligns it under the number, skipping the flag space */
}

.intl-label {
    font-weight: bold;
    color: #999;
}

.secondary-number {
    color: #666;
    text-decoration: none;
}

.secondary-number:hover {
    color: #0e571d;
}

/* Ensure all form groups take up the 3/4 width of their container */
.contact-form-card .form-group {
    margin-bottom: 20px;
    width: 75%;
    display: flex;
    flex-direction: column;
}

/* Force all inputs and selects to be the exact same width and padding */
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100%; /* The Golden Rule for alignment */
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom-in on focus */
    box-sizing: border-box; /* Ensures padding doesn't push width past 100% */
}

/* Ensure the Name/Email row doesn't break the vertical line */
.form-row {
    display: flex;
    gap: 20px;
    width: 75%;
}

.form-row .form-group {
    flex: 1; /* Makes Name and Email exactly 50/50 */
}

/* Align labels perfectly to the left */
.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

/* Fix for mobile: stack the Name/Email row so they don't get squashed */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   3. TYPOGRAPHY & GLOBAL LINKS
   ========================================================================== */
.highlight { color: #0e571d; }

h1, h2, h3 {
    color: #0e571d;
    margin-bottom: 20px;
    line-height: 1.2;
}

p { margin-bottom: 15px; font-size: 1.05rem; color: #444; }

a {
    color: #124818; 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover {
    color: #6cab52; 
    text-decoration: none;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    background: #fff;
    border-bottom: 2px solid #0e571d;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.header-logo { height: 120px; width: auto; } 

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center; 
}

.nav-links a { color: #333; }
.nav-links a:hover { color: #124818; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ==========================================================================
   5. HERO BANNER (Homepage)
   ========================================================================== */
.hero-section {
    background-color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

.hero-section .header-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content { flex: 1; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 15px; margin-bottom: 30px; }

.hero-image-container { flex: 1; position: relative; }

.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-main-img:hover { transform: perspective(1000px) rotateY(0deg); }

.hero-badge {
    display: inline-block;
    background: #f1f8e9;
    color: #0e571d;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================================================
   6. PRICING & CHOICE CARDS
   ========================================================================== */
.choice-container { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    align-items: stretch;
    flex-wrap: nowrap;
}

.choice-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 12px;
    flex: 1;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.choice-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.choice-card.featured { border: 2px solid #0e571d; position: relative; }

.price-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0 5px;
}

.card-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover; /* This makes the image fill the area without stretching */
    
    /* --- THE FIX --- */
    border-radius: 10px; 
    overflow: hidden; /* Ensures the image doesn't 'bleed' past the rounded corner */
    
    margin: 0 auto 20px;
    display: block;
    border: 1px solid #eee; /* Optional: adds a subtle thin border around the photo */
}

.amount { font-size: 4rem; font-weight: 800; color: #333; line-height: 1; }
.currency, .asterisk { font-size: 1.5rem; color: #0e571d; margin-top: 10px; font-weight: 600; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border-radius: 8px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eee;
}

.pricing-table th, .pricing-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.pricing-table th { background: #f9f9f9; color: #0e571d; font-size: 0.85rem; text-transform: uppercase; }
.save-tag { color: #0e571d; font-weight: 700; }

.pricing-notice-box {
    margin: 60px 0;
    padding: 30px;
    background: #f1f8e9;
    border-left: 5px solid #0e571d;
    border-radius: 4px;
}

/* 1. Reset the list container */
.card-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0;
    text-align: center; /* Centers the text */
}

/* 2. Style each list item */
.card-features li {
    position: relative;
    padding-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
    list-style-type: none !important;
}

/* 3. Add the Brand Green Tick */
.card-features li::before {
    content: "✓";
    color: #0e571d; /* Your Brand Green */
    font-weight: 800;
    margin-right: 8px; /* Space between tick and text */
}

/* ==========================================================================
   7. SECURITY & ALERTS (Honeypot Fix)
   ========================================================================== */
.verification-field, .hp-field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
    height: 0 !important;
    width: 0 !important;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================================================
   8. FORMS & BUTTONS
   ========================================================================== */
.btn-primary, .btn-hero {
    background: #0e571d;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.btn-primary:hover { background: #124818; }

/* ==========================================================================
   9. FOOTER (3-COLUMN DESKTOP)
   ========================================================================== */
.main-footer {
    flex-shrink: 0;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    padding: 60px 0 30px 0;
    width: 100%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    
    /* Forces 3 columns on Desktop */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    text-align: left; /* Keep desktop text aligned left */
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   10. MOBILE RESPONSIVENESS (The Switch)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-container {
        /* Switches to 1 column on Mobile */
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the content of each col */
    }

    .footer-links {
        text-align: center;
    }
}

/* ==========================================================================
   10A. MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 1024px) {
    /* Force the Header to stay a single row */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    /* Fix Logo Size */
    .header-logo { 
        height: 50px !important; 
        width: auto;
    }

    /* Position Hamburger to the Right */
    .menu-toggle {
        display: block !important;
        order: 2; /* Ensures it stays to the right of the logo */
        z-index: 1001;
    }

    /* The Vertical Menu Fix */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 3px solid #0e571d;
        z-index: 1000;
    }

    /* Force links to stack DOWN, not ACROSS */
    .nav-links {
        flex-direction: column !important; 
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .main-nav.active {
        display: block !important;
    }

    /* --- THE "X" ANIMATION LOGIC --- */
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #0e571d;
        transition: 0.3s;
    }

    /* When the menu is open, transform bars into an X */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 992px) {
    .hero-section .header-container, 
    .choice-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .choice-card { max-width: 100%; width: 100%; }
}



@media (max-width: 1024px) {
    .btn-primary { width: 75%; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 3px solid #0e571d;
    }
    .main-nav.active {
        display: block !important;
        /* Optional: Keep the menu from being too wide on larger tablets */
        max-width: 400px; 
        right: 0;
        left: auto; /* Aligns the menu to the right side under the hamburger */
        box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    }
} 

/* ==========================================================================
   11. Sign In Holding Page
   ========================================================================== */
/* HOLDING PAGE STYLES */
.holding-page-wrapper {
    background-color: #f8f9fa;
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.holding-card {
    background: #fff;
    max-width: 550px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.icon-pulse {
    font-size: 3.5rem;
    color: #0e571d; /* Your brand green */
    margin-bottom: 20px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.status-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green { background-color: #28a745; box-shadow: 0 0 5px #28a745; }
.status-dot.orange { background-color: #fd7e14; box-shadow: 0 0 5px #fd7e14; }

.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.back-link {
    margin-top: 25px;
}

.back-link a {
    text-decoration: none;
    color: #0e571d;
    font-weight: 600;
    font-size: 0.9rem;
}
/* Mobile adjustments for the Sign In Holding Page */
@media (max-width: 600px) {
    .status-box {
        flex-direction: column; /* Stacks the items vertically */
        align-items: flex-start; /* Aligns them to the left of the box */
        gap: 12px; /* Adds space between the stacked rows */
        padding: 20px;
    }

    .holding-card {
        padding: 30px 20px; /* Reduces padding so it fits better on small screens */
        margin: 0 15px; /* Adds a little margin from the edge of the phone screen */
    }

    .status-item {
        font-size: 0.95rem; /* Makes text slightly more readable on mobile */
    }
}

/* ==========================================================================
   12. Downloads Page
   ========================================================================== */

/* --- SteamGen Assist PDF Icon Styles --- */

/* The main document shape */
.pdf-icon {
    width: 45px;
    height: 60px;
    background-color: #0e571d; /* Your SteamGen Green */
    position: relative;
    border-radius: 4px 15px 4px 4px; /* Creates the unique document shape */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    margin-right: 20px;
    flex-shrink: 0; /* Prevents the icon from squishing on mobile */
}

/* The "Dog-Ear" folded corner */
.pdf-icon::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    background: #f4f4f4; /* Match this to your page background color */
    border-bottom-left-radius: 8px;
    border-top-right-radius: 4px;
}

/* The "PDF" text inside the icon */
.pdf-icon .pdf-label {
    color: white;
    font-family: 'Arial Black', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* The hover effect for the whole card */
.manual-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    text-decoration: none; /* If you make the whole card clickable */
    transition: all 0.3s ease;
}

.manual-card:hover {
    border-color: #0e571d;
    box-shadow: 0 5px 15px rgba(14, 87, 29, 0.15);
    transform: translateY(-2px);
}
.manual-card a img, .manual-card a svg {
    transition: all 0.2s ease-in-out;
    opacity: 0.8;
}

.manual-card a:hover img, .manual-card a:hover svg {
    opacity: 1;
    transform: translateY(2px); /* Makes the icon "drop" slightly when hovered */
}
/* Library Controls Container */
.library-controls {
    max-width: 1100px;
    margin: 0 auto 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Search Input Styling */
.search-wrapper {
    flex: 2;
    min-width: 300px;
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 15px; /* Reduced from 15px to 10px */
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px; /* Slightly smaller font for a tighter look */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.search-wrapper input:focus {
    border-color: #0e571d;
    box-shadow: 0 0 8px rgba(14, 87, 29, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
    font-size: 14px; /* Slightly smaller icon */
}

/* Dropdown Filter Styling */
.filter-wrapper {
    flex: 1;
    min-width: 200px;
}

.filter-wrapper select {
    width: 100%;
    padding: 10px 35px 10px 15px; /* Reduced from 15px to 10px */
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230e571d%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%; /* Adjusted position */
    background-size: 10px auto; /* Slightly smaller arrow */
}

.filter-wrapper select:focus {
    border-color: #0e571d;
}

/* Empty State Message */
#noResultsMessage {
    text-align: center;
    padding: 50px;
    color: #888;
    display: none;
}