/* 1. GLOBAL STYLES & VARIABLES */
:root {
    --primary-purple: #4A245D;    /* Brand Purple */
    --accent-magenta: #D81B60;   /* Brand Magenta */
    --soft-blue: #A2C2E8;        /* Brand Sky Blue */
    --text-dark: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 2. NAVIGATION BAR (Used across all pages) */
.center {
    width: 100%;
    display: flex;
    justify-content: center;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu {
    width: 90%;
    max-width: 1200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}

.navbar-logo {
    height: 100px;    /* Adjust this height to fit your navbar */
    width: auto;     /* Maintains aspect ratio */
    display: block;
}

#menu{
    display: none;
}

.items{
    display: flex;
    gap: 10px;
}

.item {
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.3s;
    border-radius: 5mm;
}

.item:hover {
    background: var(--soft-blue);
    color: var(--primary-purple);
}

/* --- MOBILE RESPONSIVENESS FIX --- */

@media screen and (max-width: 768px) {
    .menu {
        flex-wrap: wrap; /* Allows items to drop below the logo */
        height: auto;
        padding: 10px 0;
    }

    .logo {
        width: 100%; /* Force logo container to take full width to push items down */
        display: flex;
        justify-content: space-between; /* Logo on left, Hamburger on right */
    }

    /* SHOW THE HAMBURGER BUTTON */
    .logo label {
        display: block; 
        cursor: pointer;
        position: relative;
        width: 30px;
        height: 30px;
    }

    .logo label::before {
        content: "menu";
        font-family: "Material Symbols Outlined";
        font-size: 32px;
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        color: #4A245D;
        position: absolute;
        top: 0;
        right: 0;
        text-transform: none;
    }

    /* MOBILE MENU ITEMS */
    .items {
        width: 100%;
        flex-direction: column;
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s;
        opacity: 0;
        background: white;
    }

    /* SHOW MENU WHEN CHECKBOX IS CLICKED */
    #menu:checked ~ .items {
        max-height: 500px; /* Large enough to fit all links */
        opacity: 1;
        padding-bottom: 20px;
    }

    .item {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-top: 1px solid #eee;
        border-radius: 0;
    }
    /* THE HERO FIX (Applies to both Home and Services) */
    .hero, .services-hero {
        height: auto !important; /* Forces it to grow with text */
        min-height: 80vh;        /* Keeps a good minimum size */
        padding: 140px 20px 60px !important; /* Extra top padding to clear the navbar */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content h1, .services-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    .hero-content p, .services-hero p {
        font-size: 1rem !important;
        max-width: 100%;
    }

    /* Service Blocks on Services Page */
    .content-wrap {
        flex-direction: column !important;
        gap: 30px;
    }
    .service-detail-block.reverse .content-wrap {
        flex-direction: column !important; /* Stops the reverse on mobile */
    }
    .image-side, .img-placeholder {
        height: 250px !important; /* Smaller images on mobile */
    }

    /* Stats & About Us */
    .about-us {
        flex-direction: column;
    }
    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }
    /* 1. Prevent the entire page from leaking sideways */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* 2. Fix the Hourglass Slideshow */
    .past-work {
        width: 100vw;
        margin-left: calc(-50vw + 50%); /* Centers it if it's inside a container */
        perspective: none; /* 3D perspective often causes invisible overflow on mobile */
    }

    .slideshow-track {
        width: 400%; /* Give the track more room so images aren't squashed */
    }

    .work-col {
        flex: 0 0 25%; /* Show fewer images at once on mobile */
        height: 180px;  /* Shorter height for mobile screens */
    }

    /* 3. Fix the Methodology Grid */
    .methodology-section {
        padding: 60px 20px; /* Reduced padding for mobile */
        width: 100%;
        box-sizing: border-box;
    }

   /* 1. Force the grid to become a single vertical column */
    .methodology-grid {
        display: flex !important;
        flex-direction: column !important; /* This creates the 1x1 stack */
        gap: 30px; /* Space between the stacked cards */
        width: 100% !important;
        padding: 0;
        margin-top: 40px;
    }

    /* 2. Ensure each card takes full width and stays visible */
    .method-card {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box; /* Includes padding in width to prevent overflow */
        padding: 30px 20px !important;
        border: 1px solid #c4a484; /* Highlight the border to see the card clearly */
        background: rgba(255, 255, 255, 0.05);
    }

    .method-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 15px;
        color: #c4a484;
        display: block !important; /* Prevents text from disappearing */
        width: 100%;
    }

    /* 4. Fix Service Detail Blocks */
    .content-wrap {
        display: block; /* Stack text and image */
        width: 100%;
        flex-direction: column !important;
        gap: 30px;
    }

    .image-side, .img-placeholder {
        width: 100% !important;
        margin-top: 20px;
    }

    .service-detail-block {
        padding: 60px 20px;
    }

    /* 1. Ensure the container allows wrapping */
    .portfolio-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    /* 2. THE ALTERNATING MATH */
    
    /* Row 1, Item 1: Wide (60%) */
    .portfolio-item:nth-child(4n+1) {
        flex: 0 0 calc(60% - 5px) !important;
    }

    /* Row 1, Item 2: Narrow (40%) */
    .portfolio-item:nth-child(4n+2) {
        flex: 0 0 calc(40% - 5px) !important;
    }

    /* Row 2, Item 3: Narrow (40%) - Swapping sides */
    .portfolio-item:nth-child(4n+3) {
        flex: 0 0 calc(40% - 5px) !important;
    }

    /* Row 2, Item 4: Wide (60%) */
    .portfolio-item:nth-child(4n+4) {
        flex: 0 0 calc(60% - 5px) !important;
    }

    /* 3. Adjusting heights so they don't look stretched */
    .item-inner {
        height: 200px !important;
        border-radius: 8px !important;
    }

    /* Hide complex text on small screens to keep it clean */
    .item-info p, .tags {
        display: none !important;
    }
    
    .item-info h3 {
        font-size: 0.85rem !important;
    }

    /* Mobile Pricing Stack */
     .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* 9. RESPONSIVE DESIGN */
    .about-us {
        flex-direction: column;
    }
    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }
    .form-grid, .tier-grid { grid-template-columns: 1fr; }
    .reserve-container { padding: 30px 20px; }

    /* Mobile Pricing Stack */
     .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* --- Reserve Page Mobile Fixes --- */
    .reserve-container {
        padding: 40px 20px !important; /* Reduces massive padding on phones */
        margin: 0 10px; /* Keeps it from touching the absolute edges */
    }

    .form-grid {
        grid-template-columns: 1fr !important; /* Forces 1 column */
        gap: 20px !important;
        margin-bottom: 30px !important;
    }

    .tier-grid {
        grid-template-columns: 1fr !important; /* Stacks the service tiers vertically */
        gap: 15px !important;
    }
}

/* 3. HERO SECTION */
.hero {
    background: linear-gradient(rgba(74, 36, 93, 0.8), rgba(74, 36, 93, 0.8)), 
                url('homepage_picture.jpeg') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 span {
    color: var(--soft-blue);
}

.cta-btn {
    background: var(--accent-magenta);
    color: var(--white);
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: #b0154e;
}

/* 4. SERVICES PREVIEW (Grid Layout) */
.services-overview {
    padding: 80px 10%;
    text-align: center;
}

.services-overview h2 span {
    color: var(--primary-purple);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid var(--soft-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-magenta);
}

/* 5. ABOUT US / "BRANLLY MAGIC" */
.about-us {
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background: var(--light-bg);
    gap: 50px;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}

.about-text h2 span {
    color: var(--accent-magenta);
}

/* 6. STATS BAR */
.stats-bar {
    background: var(--primary-purple);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 60px 10%;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    margin-bottom: 5px;
    color: var(--soft-blue);
}

/* 7. CLIENT LOGO CLOUD */
.clients-section {
    padding: 80px 0;
    text-align: center;
    background: var(--white);
    overflow: hidden;
}

.logo-slider {
    width: 100%;
    margin-top: 40px;
    display: flex;
}

.logo-cloud {
    display: flex;
    gap: 80px; /* Increased spacing between enlarged logos */
    animation: slideLeft 25s linear infinite; /* Adjust time for speed */
}

.logo-wrapper {
    flex-shrink: 0; /* Prevents logos from squishing */
    width: 200px;  /* Enlarged width */
    height: 100px; /* Enlarged height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    filter: none; /* Keeps original brand colors  */
    opacity: 1;
    transition: transform 0.3s;
}

.logo-wrapper img:hover {
    transform: scale(1.1);
}

/* THE SLIDE ANIMATION */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves the cloud by exactly half its width (the first set of logos) */
        transform: translateX(calc(-50% - 40px)); 
    }
}

/* Pause animation on hover for better user experience */
.logo-slider:hover .logo-cloud {
    animation-play-state: paused;
}

/* 8. FOOTER (Shared across pages) */
footer {
    background: #222;
    color: #bbb;
    padding: 40px 10%;
    text-align: center;
}

footer a {
    color: var(--soft-blue);
    text-decoration: none;
}


/* --- Services Page Layout --- */
.services-page {
    padding-top: 100px; /* Offset for fixed navbar */
}

.services-hero {
    padding: 100px 10% 60px;
    text-align: center;
    background-color: #fbfaf8; /* Very light beige */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

.services-list {
    padding: 80px 10%;
}

.service-row {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.service-text {
    flex: 1;
}

.service-text span {
    display: block;
    color: #c4a484;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.service-text p {
    color: #555;
    line-height: 1.6;
}

/* --- The Hourglass Styles (From our previous step) --- */

/* --- Past Work Section Styling --- */
.past-work {
  margin-top: 100px;
  width: 100%;
  overflow: hidden; /* Important boundary */
  perspective: 1500px; /* Crucial for the 3D hourglass effect */
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #2c2c2c;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* 1. The Hourglass Mask - Controls vertical thinning in the center */
.hourglass-mask {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fades edges to transparency, keeping center sharp-ish but thin */
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

/* 2. The Animation Track - Moves all content together */
.slideshow-track {
  display: flex;
  flex-direction: column; /* Stacks the two rows */
  width: 200%; /* Total width = Main Set (100%) + Duplicate Set (100%) */
  animation: smoothFlow 40s linear infinite; /* Adjust speed here */
}

/* 3. Defining the Rows (2 rows) */
.slide-row {
  display: flex;
  width: 100%; /* Row occupies full track width */
  margin-bottom: 20px; /* Gap between rows */
  transform-style: preserve-3d; /* Allows rows to have independent 3D transforms */
}

/* --- 3D 'Hourglass' Width Adjustments --- */
/* The top row angles slightly back to look thinner, 
   but we boost translateZ on the track (4.) to push edges out */
.top-row {
  transform: rotateX(-5deg); 
}

/* The bottom row angles slightly forward */
.bottom-row {
  transform: rotateX(5deg);
}

/* 4. Defining the individual image columns (4 columns) */
.work-col {
  flex: 0 0 12.5%; /* Defines 1/8th of the track (4 items + 4 dupes = 8 columns total) */
  height: 250px; /* Define uniform height */
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease; /* Smooth interaction if added later */
}

.work-col img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images crop nicely within the thin columns */
  display: block;
}

/* Optional: Slight opacity fade on edges as they approach the center */
.work-col::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
  pointer-events: none; /* Allows clicks through this overlay */
}

/* --- The Seamless Flow Animation --- */
@keyframes smoothFlow {
  0% { transform: translateX(0); }
  /* We move the track 50% left. Since the duplicate 
     set is the second 50%, it seamlessly resets. */
  100% { transform: translateX(-50%); } 
}

/* Pauses on hover (useful for viewing work) */
.hourglass-mask:hover .slideshow-track {
  animation-play-state: paused;
}

/* --- The Quote Section --- */
.portfolio-quote {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: center;
  font-family: 'Playfair Display', serif; /* Use a classy serif for the quote */
  border-top: 1px solid #c4a484;
  padding-top: 40px;
}

.portfolio-quote blockquote {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 15px;
  font-style: italic;
}

.portfolio-quote p {
  color: #c4a484; /* Use your accent color */
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ensure you include the .past-work, .hourglass-mask, 
   and .slideshow-track CSS from the previous message here! */

.badge {
    background: #c4a484;
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.service-detail-block {
    padding: 100px 10%;
}

.service-detail-block.reverse .content-wrap {
    flex-direction: row-reverse;
}

.content-wrap {
    display: flex;
    align-items: center;
    gap: 80px;
}

.text-side {
    flex: 1;
}

.image-side {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.detailed-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.detailed-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.detailed-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #c4a484;
}

/* Methodology Grid */
.methodology-section {
    background: #1a1a1a;
    color: white;
    padding: 100px 10%;
    text-align: center;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.method-card {
    padding: 40px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.method-card:hover {
    border-color: #c4a484;
}

.method-card h3 {
    color: #c4a484;
    margin-bottom: 20px;
}

/* --- Contact Page Styling --- */
.contact-page {
    padding-top: 120px;
    background-color: #fbfaf8;
    min-height: 100vh;
}

.contact-hero {
    text-align: center;
    padding: 0 10% 60px;
}

.contact-hero h1 {
    font-size: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on left, Form on right */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    color: #c4a484; /* Your brand accent color */
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p, .info-card a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #c4a484;
}

.contact-btn {
    background: #1a1a1a;
    color: white;
    padding: 15px 40px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.contact-btn:hover {
    background: #c4a484;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        flex: 0 0 100%;
    }
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    .portfolio-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding: 20px;
    }
}

/* --- Portfolio Specific Styles --- */
.portfolio-page {
    padding-top: 80px;
    background: #fff;
}

.portfolio-hero {
    text-align: center;
    padding: 80px 10%;
    background: #fbfaf8;
}

.portfolio-filters {
    text-align: center;
    padding: 40px 0;
    position: sticky;
    top: 80px;
    background: white;
    z-index: 100;
}

.filter-btn {
    padding: 10px 25px;
    margin: 5px;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    border-radius: 30px;
    font-family: inherit;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* The Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 5%;
    gap: 20px;
    margin-bottom: 80px;
}

.portfolio-item {
    flex: 0 0 calc(33.333% - 14px);
    display: none; /* Controlled by JS */
}

.portfolio-item.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.item-inner {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

.item-inner:hover img {
    transform: scale(1.1);
}

.tags {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.tags span {
    font-size: 0.7rem;
    background: rgba(196, 164, 132, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--soft-blue);
}

/* Standards Section */
.experience-standards {
    padding: 100px 10%;
    background: var(--primary-purple);
    color: white;
    text-align: center;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.standard-card span {
    font-size: 40px;
    color: var(--soft-blue);
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.price-card input {
    display: none; /* Hide the radio button */
}

.card-content {
    border: 2px solid #eee;
    padding: 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.price-card input:checked + .card-content {
    border-color: #c4a484; /* Branlly Tan */
    background: #fbfaf8;
}


.reserve-page {
    background: #fbfaf8;
    padding: 120px 5% 80px;
    min-height: 100vh;
}

.reserve-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.executive-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #888;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Target the select element specifically */
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background-color: #fdfdfd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif; /* Explicitly re-declare font */
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    appearance: none; /* Removes the default browser arrow in some browsers */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c4a484%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%2F%3E%3C%2Fsvg%3E"); /* Adds a custom Branlly-Tan arrow */
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65rem auto;
}

/* Ensure the focus state matches your inputs */
.form-group select:focus {
    border-color: #c4a484;
    outline: none;
    box-shadow: 0 0 5px rgba(196, 164, 132, 0.2);
}

.tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 40px;
}

.tier-card input { display: none; }

.tier-content {
    border: 1px solid #eee;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

/* Highlights the 360 End-to-End package */
.tier-card.premium-tier {
    grid-column: 1 / -1; /* Forces it to span the full width of the grid */
}

/* Optional: Make the premium tier stand out a bit more */
.tier-card.premium-tier .tier-content {
    background: #fbfaf8; 
}

.tier-card.premium-tier input:checked + .tier-content {
    background: #fdfaf8;
    border-color: #c4a484;
}

.tier-card input:checked + .tier-content {
    border-color: #c4a484;
    background: #fdfaf8;
}

/* --- Notification Toast Styling --- */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 6px solid #c4a484; /* Branlly Tan */
    overflow: hidden;
    transform: translateX(calc(100% + 40px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 2000;
}

.toast.active {
    transform: translateX(0%);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-content .material-symbols-outlined {
    color: #c4a484;
    font-size: 35px;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.message .text.text-1 {
    font-weight: 600;
    color: #4A245D; /* Brand Purple */
}

/* Progress Bar Animation */
.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #f2f2f2;
}

.toast .progress:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: #c4a484;
}

.toast.active .progress:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% { right: 100%; }
}

/* --- Real-Time Validation Styling --- */
.validation-msg {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    height: 15px; /* Keeps the form from jumping up and down when text appears */
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Invalid (Red) State */
.validation-msg.invalid { color: #d9534f; }
.form-group input.invalid { 
    border-color: #d9534f; 
    background-color: #fffafa; /* Very light red tint */
}

/* Valid (Green) State */
.validation-msg.valid { color: #5cb85c; }
.form-group input.valid { 
    border-color: #5cb85c; 
    background-color: #fafffa; /* Very light green tint */
}
/* --- Clickable Info Cards --- */
a.info-card {
    text-decoration: none; /* Removes the blue underline */
    color: inherit; /* Keeps your original text colors */
    display: block; /* Ensures it takes up the right amount of space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Adds a nice pop effect when hovered */
a.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}