/**
 * welcome.css - Updated styling for Contract Hulk homepage with preview page design elements
 * Applied glassmorphism effects, improved color scheme, and enhanced visual design
 */
 
 /* MOBILE X-OVERFLOW FIX - Add to existing welcome.css */
/* These fixes target only mobile viewport overflow issues without affecting desktop */

/* Only add overflow protection to html/body if not already present */
html, body {
    overflow-x: hidden;
}
 

@media screen and (-webkit-min-device-pixel-ratio:0) {
    input {
        -webkit-appearance: menulist-button !important;
        line-height: 22px !important;
        height: 48px !important;
    }
    
    } 
    select {
        -webkit-appearance: menulist-button !important;
        line-height: 22px !important;
        height: 48px !important;
    }
} 
 
/* Benefits Panel CSS */
.benefits-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-panel {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 60px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: white;
}

.benefit-panel.highlighted {
    background: #e8f4f8;
}

.benefit-panel:hover {
    transform: translateX(6px);
    border-left-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.benefit-panel:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.roundtop {
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
}

.roundbottom {
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
}

.free-preview-label {
    margin-top: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    
}

.orange-gradient-btn {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
}

.orange-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 43%, rgb(4 110 80) 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* prevent resizing */
}

.benefit-icon {
  font-size: 24px;
  line-height: 1;
}

/*.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}*/

.benefit-panel:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/*.benefit-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}*/

.benefit-see     { background-color: #2CA6A4; } /* teal */
.benefit-edit    { background-color: #60B4E0; } /* sky blue */
.benefit-guide   { background-color: #7DC47D; } /* soft green */
.benefit-fast    { background-color: #2FB37E; } /* emerald */
.benefit-quality { background-color: #2E4A62; } /* navy */
.benefit-value   { background-color: #7B8B9A; } /* slate gray */

.benefit-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.benefit-title {
    display: block;
    color: #1f2937;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: left;
}

.benefit-description {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .benefit-panel {
        padding: 16px;
        gap: 12px;
        text-align: left; 
    }
    
    .benefit-panel:hover {
        transform: translateX(3px);
    }
    
    
    
    .icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .benefit-icon {
        font-size: 16px;
    }
    
    .benefit-title {
        font-size: 18px;
    }
    
    .benefit-description {
        font-size: 18px;
    }
} 

/* Target the specific overflow issue in your existing mobile media query */
@media (max-width: 768px) {
    /* Main container - work with your existing styles */
    .main-container {
        max-width: 100vw; /* Add this to existing styles */
        overflow-x: hidden; /* Add this */
    }
    
    /* Price display - fix the fixed width issue */
    .price-display {
        width: calc(100% - 30px); /* Replace existing width: 400px */
        max-width: 350px; /* Add max constraint */
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Tooltip width constraint for mobile */
    .tooltip {
        max-width: 280px; /* Add this to prevent overflow */
        left: 50%;
        transform: translateX(-50%);
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Promo status positioning fix */
    .promo-status {
        right: 15px; /* Keep existing positioning */
        max-width: 70px; /* Add width constraint */
        font-size: 12px; /* Smaller on mobile */
        word-wrap: break-word;
    }
    
    /* Benefit panel padding adjustment */
    .benefit-panel {
        padding-right: 30px; /* Reduce from existing 60px */
    }
    
    /* Text wrapping for long content */
    .ai-heading,
    .benefit-title
     {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 24px !important;
    }
     
    .benefit-title
     {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 22px !important;
    }
}

/* Modal mobile constraint - separate from main media query */
@media (max-width: 768px) {
    .promo-modal {
        width: 95vw; /* Constrain modal width */
        max-width: 400px;
    }
}

.main1 {
     padding: 10px;
}
 

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: white;
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.form-hidden {
    display: none !important;
}



/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Ensure content appears above background */
}

/* HEADER BOX */
.header-box {
   /* background: rgba(255,255,255,0.15);*/
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.header-box {
    background: linear-gradient(45deg, #bcedd1, #046e50, #dbfff54f, #03311f);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-box h1 {
    color: #fbbf24;
    font-size: 49px;
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-box .subtitle {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
}

/* MAIN CONTENT BOX */
.main-content-box { 
    background: linear-gradient(180deg, #ffffff29 30%, #e8f4f8 30%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #1f2937;
    transition: transform 0.3s ease;
}

.main-content-box:hover {
    transform: translateY(-5px);
}

/* Price Display */
.price-display {
    background: rgb(236 255 249);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.price-display.discounted {
    background: rgb(230 255 247);
    border-color: #059669;
}

.price-label {
    font-size: 14px;
    color: #064e3b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes price-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.price-amount {
    font-size: 2.8em;
    font-weight: bold;
    background-image: linear-gradient(90deg, #000000 30%, #eac901 50%, #fffbe6 55%, #eac901 60%, #000000 70%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: price-shimmer 7s linear infinite;
}


.price-amount.discounted {
    color: #059669;
}

.original-price {
    font-size: 0.7em;
    color: #6b7280;
    -webkit-text-fill-color: #6b7280;
    text-decoration: line-through;
    margin-right: 10px;
}

.savings-badge {
    display: none;
    background: #10b981;
    color: white; 
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold; 
    transform: scale(0);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.savings-badge.show {
    transform: scale(1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block; 
    color: #1f2937;
    font-weight: 600;
    font-size: 20px;
    margin-bottom:5px;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.state-search-wrapper {
    position: relative;
}

.state-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
}

.state-dropdown.open {
    display: block;
}

.state-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #1f2937;
}

.state-dropdown-item:hover,
.state-dropdown-item.highlighted {
    background: #d1fae5;
}

.promo-group {
    position: relative;
}

.promo-status {
    position: absolute !important;
    right: 35px; 
    top: 16px;
    font-size: 14px;
    max-width:150px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.promo-status.show {
    opacity: 1;
}

.promo-status.valid {
    color: #10b981;
}

.promo-status.invalid {
    color: #ef4444;
}

.promo-status.checking {
    color: #f59e0b;
}

/* PURCHASE BUTTONS */
.purchase-section {
    margin: 25px 0;
    text-align: center;
}

.purchase-btn.orange-gradient-btn {
    width:300px!important;
    height: 55px;
    box-shadow: 0 4px #4c2b02, 0 8px 15px rgb(219 121 5 / 58%);
}
.purchase-btn.orange-gradient-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px #4c2b02, 0 15px 15px rgba(245, 158, 11, 58%); 
}

.purchase-btn {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 30px;
    width: 200px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

 .promo-group {
  position: relative;
  width: 100%;
}

.promo-input {
  width: 100%;
  padding-right: 80px;
  box-sizing: border-box;
}

 

.promo3 {
    display: block;
    text-align:center;
    color: #1f2937;
    margin-top:10px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}
                    

.ai-heading {
    color: #ffffff;
    font-size: 28px;
    /* filter: drop-shadow(1px 1px 1px yellow); */
    font-weight: bold;
    text-align: center;
    line-height: 45px;
    margin-bottom: 20px;
    text-shadow: 1px -2px 4px rgb(0 0 0 / 10%);
    letter-spacing: 2.5px;
}

.purchase-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;
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.purchase-btn:disabled::before {
    display: none;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #064e3b;
    border-color: #10b981;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
    border-color: #ef4444;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

/* VALUE PROPOSITION BOX */
.value-prop-box {
    background: #ffffff29 30%;
    backdrop-filter: blur(2px); 
    border-radius: 12px;
    padding: 25px;
    text-align: left; 
    border-radius: 12px; 
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.value-prop-box:hover {
    transform: translateY(-5px);
}

.value-prop-box h4 {
    color: #064e3b;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-prop-box h5 {
    color: #064e3b;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-prop-intro {
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    padding: 10px 0;
    color: #374151;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.value-list li:last-child {
    border-bottom: none;
}

.value-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* IP Status */
.ip-status {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    text-align: center;
}

.ip-detected {
    color: #10b981;
}

.ip-loading {
    color: #f59e0b;
}

.ip-error {
    color: #ef4444;
}

/* Loading animation */
.checking-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        /*padding: 10px;*/
    }

    .main-container {
        max-width: 100%;
        gap: 15px;
    }

    .header-box {
        padding: 20px;
    }

    .header-box h1 {
        font-size: 37px;
    }

    .header-box .subtitle {
        font-size: 16px;
    }

    .main-content-box {
        padding: 20px;
    }

    .price-amount {
        font-size: 2.2em;
    }

    .purchase-btn {
        padding: 15px 20px;
        font-size: 14px;
    }

    .value-prop-box {
        padding: 20px;
        text-align: center;
    }

    .value-list li {
        justify-content: center;
    }
}

/* Ensure form elements have proper stacking context */
.main-container * {
    position: relative;
    z-index: 101;
}

/* Additional z-index fixes for animated background elements */
.particles-container,
.geometric-shapes,
.grid-overlay {
    z-index: 1 !important;
}

.main-container,
.alert,
.form-group,
.purchase-btn {
    z-index: 100 !important;
}

    /* Help Icon and Tooltip Styles */
.help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    margin-left: 8px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.help-icon2 {
    display: inline-block;
    height: 22px;
    background: #f59e0c;
    color: white;
    border-radius: 20px;
    padding: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 11px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #d97706;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align:left;
    background: #09825c;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 880px;
    white-space: normal; 
    line-height: 1.4;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.help-icon:hover + .tooltip1 {
    opacity: 1;
    visibility: visible;
}

.help-icon:hover + .tooltip2 {
    opacity: 1;
    visibility: visible;
}

.help-icon:hover + .tooltip {
    opacity: 1;
    visibility: visible;
}
/* Promo Modal Styles */
.promo-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.promo-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-modal-header {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.promo-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 5px;
}

.close-modal:hover {
    opacity: 1;
    transform: scale(1.1);
}

.promo-modal-body {
    padding: 30px 25px;
    text-align: center;
    color: #1f2937;
}

.promo-modal-body p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #374151;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
}

.email-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.send-promo-btn {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    width: 300px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.send-promo-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;
}

.send-promo-btn:hover::before {
    left: 100%;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .promo-modal {
        max-width: 95%;
    }
    
    .promo-modal-header {
        padding: 15px 20px;
    }
    
    .promo-modal-header h3 {
        font-size: 18px;
    }
    
    .promo-modal-body {
        padding: 25px 20px;
    }
    
    .email-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .send-promo-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Back to Form Button - moved from inline style */
.back-to-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* SEO Headings - Hidden for SEO purposes */
.seo-heading {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}