/* =========================================================
   EXTERNAL LINKS (All moved from HTML)
   ========================================================= */

/* Import Google Fonts for Montserrat and Open Sans */
@import url('https://fonts.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* Import Font Awesome for Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');


/* ==================================================================================
   CSS STYLING FOR DOMAIN REGISTRATION LANDING PAGE (ORIGINAL ROUNDED DESIGN)
   ==================================================================================
*/

/* --- Variable Definitions (Consistent Branding) --- */
:root {
    --wave-primary: #1D53A5; 	 	 /* Deep Blue (Primary) */
    --wave-accent: #00B373; 	     /* Green (Secondary Accent) */
    --wave-light-accent: #F0B542; 	 /* Gold/Yellow Accent */

    /* Neutral Colors */
    --wave-light-bg: #F9F9F9; 	 	
    --wave-dark-text: #2c3e50; 	
    --wave-body-text: #34495e; 	
    --wave-white: #ffffff;
    --wave-section-bg: #ffffff; 
}

/* Base Styling */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--wave-body-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--wave-light-bg); 
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--wave-dark-text);
    line-height: 1.2;
}
.wave-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 25px;
    background-color: var(--wave-section-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-header h2 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--wave-primary); 
    margin: 20px auto 0;
    border-radius: 2px;
}
.section-header p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* --- CTA Buttons (Global Style) --- */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    margin: 10px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.primary-cta {
    background-color: var(--wave-accent); 
    color: var(--wave-white);
    border: 2px solid var(--wave-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.primary-cta:hover {
    background-color: var(--wave-primary); 
    border-color: var(--wave-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.secondary-cta {
    background-color: transparent;
    color: var(--wave-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: .5em 1em;
}
.secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--wave-white);
    transform: translateY(-3px);
}

/* --- 1. HERO SECTION (DOMAIN SEARCH) --- */
.domain-hero {
    position: relative;
    color: var(--wave-white);
    
    /* ----------------------------------------------- */
    /* START: BACKGROUND IMAGE STYLES */
    /* ----------------------------------------------- */
    
    /* ⚠️ 1. IMPORTANT: Replace 'path/to/your/image.jpg' with your actual image URL */
    background-image: url('../../..//domain-reg.png'); 
    
    /* 2. Your requested styling: */
    background-size: 100% auto; 
    margin-top: -5.5vh; 
    z-index: 0;
    
    /* 3. Ensure image placement and repeat */
    background-repeat: no-repeat;
    background-position: center top;
    background-color: var(--wave-primary); /* Fallback color */

    /* Use padding to control the section's visible height */
    padding: 180px 25px 120px; 
    
    /* ----------------------------------------------- */
    /* END: BACKGROUND IMAGE STYLES */
    /* ----------------------------------------------- */

    text-align: center;
    overflow: hidden;
}

.domain-hero h1 {
    font-size: 3.8em;
    font-weight: 800;
    margin-bottom: 20px; 
    color: var(--wave-white);
    position: relative; /* To keep text above background */
    z-index: 10;
}
.domain-hero p {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 50px; 
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    position: relative; /* To keep text above background */
    z-index: 10;
}

.domain-search-module-container {
    max-width: 800px;
    margin: 0 auto;
    /* Removed negative margin since background images don't typically overlap the same way as an <img> element */
    margin-bottom: 40px; 
    position: relative;
    z-index: 5; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: var(--wave-white); 
    padding: 1px; 
}

/* ------------------------------------------------------------------
   START: Domain Search Plugin Styling (FIXED FOR STACKED LAYOUT)
   ------------------------------------------------------------------ */

/* Ensure the module's content is centered and takes full container width */
.domain-search-module-container > * {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.domain-search-module-container form {
    display: block !important; 
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important; 
    box-sizing: border-box; 
}

/* --- THE ULTIMATE TEXT COLOR FIX (Ensures text is black in search input) --- */
.domain-search-module-container * {
    color: #000 !important;
    text-shadow: none !important;
    box-sizing: border-box;
}

/* Style for the Input Field (Text Box) - Using previous working version */
.domain-search-module-container input[type="text"],
.domain-search-module-container input[type="search"],
.domain-search-module-container form > input { 
    width: 100% !important; 
    padding: 20px 25px !important; 
    border: 1px solid #ddd !important; 
    border-radius: 8px !important; 
    margin-bottom: 10px !important; 
    
    outline: none !important;
    height: auto !important;
    line-height: normal !important;
    font-weight: 500; 
    color: #000 !important; 
    text-shadow: none !important; 
}

/* Placeholder Text Color Fix */
.domain-search-module-container input::placeholder {
    color: #888 !important; 
    opacity: 1 !important; 
}

/* Style for the Search Button (Submitting the form) */
.domain-search-module-container input[type="submit"],
.domain-search-module-container button[type="submit"] {
    display: block !important;
    width: 100% !important;

    background-color: var(--wave-accent) !important; 
    color: var(--wave-white) !important;
    
    padding: 18px 35px !important; 
    font-size: 1.1em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;

    border: none !important; 
    border-radius: 8px !important; 
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.domain-search-module-container input[type="submit"]:hover,
.domain-search-module-container button[type="submit"]:hover {
    background-color: var(--wave-primary) !important; 
    transform: scale(1.00); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments for the search form */
@media (max-width: 600px) {
    .domain-search-module-container form {
        padding: 15px !important; 
    }
}
/* ------------------------------------------------------------------
   END: Domain Search Plugin Styling
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   START: FIX FOR TLD SELECTION LIST (Aggressive Hide)
   ------------------------------------------------------------------ */
.domain-search-module-container [class*="tld"],
.domain-search-module-container ul,
.domain-search-module-container li {
    /* CRITICAL: Hides the entire problematic TLD list section */
    display: none !important; 
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* Style the main title (kept visible) */
.domain-search-module-container h2 {
    text-align: center !important;
    margin-bottom: 25px !important;
    font-size: 2em !important;
    color: var(--wave-dark-text) !important;
    display: block !important; 
    visibility: visible !important;
    height: auto !important; 
    padding: 0 !important; 
    margin-top: 0 !important; 
}
/* ------------------------------------------------------------------
   END: FIX FOR TLD SELECTION LIST
   ------------------------------------------------------------------ */


/* --- 2. BENEFITS SECTION --- */
.benefits-section {
    background-color: var(--wave-white);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}
.benefit-item {
    padding: 30px;
    border-radius: 10px;
    border-bottom: 4px solid var(--wave-light-accent); 
    background-color: var(--wave-light-bg);
    transition: transform 0.3s ease;
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.benefit-item i {
    font-size: 3.5em;
    color: var(--wave-primary); 
    margin-bottom: 20px;
}
.benefit-item h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- 3. TLD HIGHLIGHTS SECTION (REDESIGNED LIST - STACKED FIX) --- */
.pricing-section {
    background-color: var(--wave-light-bg);
}
.tld-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 0; 
    max-width: 900px;
    margin: 0 auto;
    background: var(--wave-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.tld-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.tld-item:last-child {
    border-bottom: none;
}
.tld-item:hover {
    background-color: var(--wave-light-bg);
    transform: translateX(5px);
}

/* Highlight style for promo TLDs */
.tld-item.highlight {
    background-color: #e6f7ff; 
    border-left: 5px solid var(--wave-accent); 
}

/* Content Area */
.tld-content {
    flex-grow: 1;
    padding-right: 20px; 
}
.tld-content i {
    font-size: 1.2em;
    color: var(--wave-accent);
    margin-right: 15px;
}
.tld-content h3 {
    display: inline-block;
    font-size: 1.7em; 
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--wave-primary);
}
.tld-content p {
    font-size: 0.95em; 
    color: var(--wave-body-text);
    margin: 0 0 0 35px; 
    line-height: 1.4;
}

/* CTA Button */
.tld-item .primary-cta {
     padding: 10px 25px; 
     font-size: 0.95em; 
     margin: 0;
     text-transform: none; 
     flex-shrink: 0; 
}

/* --- 4. FINAL CTA SECTION (RE-USED) --- */
.contact-cta-section {
    background-color: var(--wave-accent); 
    color: var(--wave-white);
    padding: 80px 25px;
    text-align: center;
    border-top: 5px solid var(--wave-primary); 
}
.contact-cta-section h2 {
    color: var(--wave-white);
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 20px;
}
.contact-cta-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}
.contact-cta-section .cta-button.primary-cta {
    background-color: var(--wave-white);
    color: var(--wave-accent);
    border-color: var(--wave-white);
}
.contact-cta-section .cta-button.primary-cta:hover {
    background-color: var(--wave-primary); 
    color: var(--wave-white);
    border-color: var(--wave-primary);
}

/* =========================================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================================= */

@media (max-width: 768px) {
    /* Global Adjustments */
    .domain-hero { 
        padding: 100px 20px 80px; 
        background-size: cover; /* Use cover on mobile for better fit */
    }
    .domain-hero h1 { font-size: 2.8em; }
    .domain-hero p { font-size: 1.1em; }
    .section-header h2 { font-size: 2em; }
    .section-header p { font-size: 1em; }
    .contact-cta-section h2 { font-size: 2.2em; }
    .wave-section { padding: 60px 20px; }
    
    /* TLD List Mobile Redesign */
    .tld-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .tld-content {
        padding-right: 0;
        margin-bottom: 15px;
    }
    .tld-content p {
        margin: 5px 0 0 0;
    }
    .tld-item .primary-cta {
        width: 100%;
        text-align: center;
    }
}