/* ========================================
   FORMS SECTION STYLES v1.00
   ======================================== */

/* ========================================
   SHARED STYLES ACROSS ALL FORM PAGES
   ======================================== */

/* Enhanced form links styling */
.forms-link {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.forms-link:hover {
    transform: translateX(5px);
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Trust badges */
.trust-badges {
    background: #f8f9fa;
    padding: 2rem 0;
    margin: 3rem 0;
    border-radius: 0.5rem;
}

.trust-badge {
    text-align: center;
    padding: 1rem;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
    display: block;
}

.trust-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* ========================================
   DEFAULT.HTML (MAIN FORMS PAGE) STYLES
   ======================================== */

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title strong {
    font-weight: 600;
    color: #0d6efd;
}

/* State selection box enhancement */
.state-selection-box {
    background: #0d6efd;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.state-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* State links enhancement */
#stateLinks .forms-link {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#stateLinks .forms-link:hover {
    transform: translateX(5px);
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Feature cards */
.feature-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* Benefits list enhancement */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: start;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: #28a745;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 0.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    #stateLinks .forms-link {
        font-size: 0.9rem;
    }
}

/* ========================================
   STATE-MAIN.HTML STYLES
   ======================================== */

/* Enhanced product links styling */
#stateProductLinks .forms-link {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#stateProductLinks .forms-link:hover {
    transform: translateX(5px);
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Product selection box */
.product-selection-box {
    background: #0d6efd;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-selection-box i {
    font-size: 1.2rem;
}

/* State info card enhancement */
.state-info-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
}

/* Quick stats */
.quick-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    display: block;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Product count badge */
.product-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #stateProductLinks .forms-link {
        font-size: 0.9rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   STATE-PRODUCT-MAIN.HTML STYLES
   ======================================== */

/* Enhanced county links styling */
#stateProductLocalLinks .forms-link {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#stateProductLocalLinks .forms-link:hover {
    transform: translateX(5px);
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Search box styling */
.search-input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background-color: white;
}

.search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* County count badge */
.county-count-badge {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #495057;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Product info card enhancement */
.product-overview-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
}

/* Quick facts sidebar */
.quick-facts {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}

.quick-facts ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.quick-facts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.quick-facts li:last-child {
    border-bottom: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #stateProductLocalLinks .forms-link {
        font-size: 0.9rem;
    }
}

#whySelectCounty {
    transition: all 0.3s ease;
}

/* ========================================
   COUNTY-PRODUCT-MAIN.HTML STYLES
   ======================================== */

/* Enhanced checkout styling */
.checkout .card {
    transition: all 0.3s ease;
}

/* Enhanced checkout button - add to existing styles */
#getFormsBtn {
    background: linear-gradient(135deg, #FF9900 0%, #FF7700 100%);
    border: none;
    font-size: 1.2rem;
    padding: 1rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

#getFormsBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF7700 0%, #FF5500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* Add a subtle pulse animation */
@keyframes subtlePulse {
    0% { box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 153, 0, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3); }
}

#getFormsBtn:not(:disabled) {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Make the checkout card stand out when payment form is visible */
#paymentInfo .card {
    box-shadow: 0 0 20px rgba(0,123,255,0.15);
}

/* Hover effect on button */
#getFormsBtn {
    transition: all 0.2s ease;
}

#getFormsBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #FF9900;
    transition: width 0.3s ease;
}

/* Security header styling */
.security-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Form thumbnail styling */
.form-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

/* Form item hover effect */
.form-item {
    transition: all 0.2s ease;
}

.form-item:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0.25rem;
}

/* Last form item no border */
.form-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Form preview enhancements */
.form-thumbnail {
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-thumbnail:hover img {
    transform: scale(1.05);
}

.hover-visible {
    transition: opacity 0.3s ease;
}

.form-thumbnail:hover .hover-visible {
    opacity: 1 !important;
}

.price-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: normal;
    position: relative;
    top: -0.8rem;
    margin-right: 0.1rem;
}

.price-dollars {
    font-size: 2.5rem;
    font-weight: normal;
}

.price-cents {
    font-size: 1.2rem;
    font-weight: normal;
    position: relative;
    top: -0.8rem;
    margin-left: 0.1rem;
}

/* Alternative approach using flexbox for better control */
.price-display-flex {
    display: inline-flex;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    line-height: 1;
}

.price-display-flex .price-currency {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 0.2rem;
    margin-right: 0.1rem;
}

.price-display-flex .price-dollars {
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 0.8;
}

.price-display-flex .price-cents {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 0.2rem;
    margin-left: 0.1rem;
}

/* Enhanced accordion button styling */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button.collapsed {
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:hover {
    background-color: #e9ecef;
}

/* Optional: Add subtle animation to the icons */
.accordion-button i {
    transition: transform 0.2s ease;
}

.accordion-button:not(.collapsed) i {
    transform: rotate(90deg);
}

/* Optional: Enhance the accordion item borders */
.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 0.5rem;
    border-radius: 0.375rem !important;
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

/* Ensure span elements inside accordion buttons display correctly with flexbox */
.accordion-button span.d-flex {
    display: flex !important;
}

.accordion-button span.flex-grow-1 {
    flex-grow: 1 !important;
}

.accordion-button span.d-block {
    display: block !important;
}

.accordion-button span.w-100 {
    width: 100% !important;
}

.accordion-button span.align-items-center {
    align-items: center !important;
}

/* Ensure nested spans maintain their block display */
.accordion-button span span.d-block {
    display: block !important;
}

/* Fix for line height in nested spans */
.accordion-button span[style*="line-height"] {
    display: inline-block !important;
    width: 100%;
}