/*
Theme Name: SaaS Remote Desktop Theme
Description: A modern, responsive WordPress theme designed specifically for SaaS Remote Desktop applications. Features a clean design with gradient backgrounds, customizable pricing plans, and membership plugin integration.
Author: Custom Theme Developer
Version: 1.0.0
License: GPL v2 or later
Text Domain: saas-remote-theme
Tags: business, saas, responsive, modern, two-columns, featured-images, custom-menu
*/

/* ==========================================================================
   CSS Reset & Global Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #2d3748;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Site Layout
   ========================================================================== */

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-main {
    width: 100%;
    min-height: 50vh;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.section-alt h1,
.section-alt h2,
.section-alt h3,
.section-alt h4,
.section-alt h5,
.section-alt h6 {
    color: #ffffff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.btn-solid {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-solid:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d3748;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #667eea;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2d3748;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    margin-top: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: #4a5568;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #2d3748;
}

.testimonial-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #667eea;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.pricing-period {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: #4a5568;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: 600;
    margin-right: 0.75rem;
}

/* ==========================================================================
   Customer Portal Styles
   ========================================================================== */

.portal-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portal-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.portal-card:hover {
    border-color: #667eea;
}

.portal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Blog & Content Styles
   ========================================================================== */

.content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: #4a5568;
    font-size: 0.875rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.125rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.post-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
}

.post-card-content {
    padding: 2rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: #2d3748;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #764ba2;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
        transition: color 0.3s ease;
    }
    
    .menu-toggle:hover {
        color: #667eea;
    }
    
    /* Mobile menu styles */
    #primary-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    #primary-menu.menu-open {
        right: 0;
    }
    
    .main-navigation.menu-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    #primary-menu li {
        margin: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    #primary-menu li:last-child {
        border-bottom: none;
    }
    
    #primary-menu a {
        display: block;
        padding: 1rem 0;
        color: #2d3748;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    #primary-menu a:hover {
        color: #667eea;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: 140px;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .portal-section {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .btn,
    .menu-toggle {
        display: none;
    }
    
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   WooCommerce Checkout Override Styles (Critical)
   ========================================================================== */

/* Checkout page container */
.checkout-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Section header */
.checkout-container .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-container .section-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.checkout-container .section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Checkout form layout */
.woocommerce-checkout {
    display: block;
    width: 100%;
}

.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Order review section */
#order_review_heading {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 30px 0 20px 0;
    text-align: center;
}

#order_review {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Form fields styling */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkout button */
.woocommerce-checkout #place_order {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .checkout-container {
        margin: 10px;
        padding: 15px;
    }
    
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2,
    #order_review {
        padding: 20px;
    }
    
    .checkout-container .section-header h2 {
        font-size: 1.5rem;
    }
    
    .checkout-container .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        margin: 5px;
        padding: 10px;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2,
    #order_review {
        padding: 15px;
    }
    
    .woocommerce-checkout .form-row input,
    .woocommerce-checkout .form-row select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional WooCommerce overrides for proper display */
.woocommerce .woocommerce-checkout .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce .woocommerce-checkout .shop_table td,
.woocommerce .woocommerce-checkout .shop_table th {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #2c3e50;
}

.woocommerce .woocommerce-checkout .shop_table .order-total {
    font-weight: 600;
    color: #667eea;
}

/* Ensure proper container width */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
}

/* Payment methods styling */
.woocommerce .woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods {
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li {
    border: none;
    margin-bottom: 10px;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li label {
    color: #2c3e50;
    font-weight: 600;
}

/* Fix checkout validation errors */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #2980b9;
}

/* =============================================================================
   WordPress Login Form Styles
   ============================================================================= */

/* Login form container */
.woocommerce-form-login,
.woocommerce-form-register,
.login-form,
.woocommerce form.login,
.woocommerce form.register {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

/* Login form labels */
.woocommerce-form-login label,
.woocommerce-form-register label,
.login-form label,
.woocommerce form.login label,
.woocommerce form.register label {
    color: #2d3748 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

/* Login form input fields */
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"],
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.woocommerce form.login input[type="text"],
.woocommerce form.login input[type="email"],
.woocommerce form.login input[type="password"],
.woocommerce form.register input[type="text"],
.woocommerce form.register input[type="email"],
.woocommerce form.register input[type="password"] {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #2d3748 !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

/* Input field focus state */
.woocommerce-form-login input[type="text"]:focus,
.woocommerce-form-login input[type="email"]:focus,
.woocommerce-form-login input[type="password"]:focus,
.woocommerce-form-register input[type="text"]:focus,
.woocommerce-form-register input[type="email"]:focus,
.woocommerce-form-register input[type="password"]:focus,
.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.woocommerce form.login input[type="text"]:focus,
.woocommerce form.login input[type="email"]:focus,
.woocommerce form.login input[type="password"]:focus,
.woocommerce form.register input[type="text"]:focus,
.woocommerce form.register input[type="email"]:focus,
.woocommerce form.register input[type="password"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* Placeholder text */
.woocommerce-form-login input::placeholder,
.woocommerce-form-register input::placeholder,
.login-form input::placeholder,
.woocommerce form.login input::placeholder,
.woocommerce form.register input::placeholder {
    color: #a0aec0 !important;
}

/* Login button */
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.login-form .button,
.woocommerce form.login .button,
.woocommerce form.register .button,
.woocommerce-form-login input[type="submit"],
.woocommerce-form-register input[type="submit"],
.login-form input[type="submit"],
.woocommerce form.login input[type="submit"],
.woocommerce form.register input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover,
.login-form .button:hover,
.woocommerce form.login .button:hover,
.woocommerce form.register .button:hover,
.woocommerce-form-login input[type="submit"]:hover,
.woocommerce-form-register input[type="submit"]:hover,
.login-form input[type="submit"]:hover,
.woocommerce form.login input[type="submit"]:hover,
.woocommerce form.register input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Login form links */
.woocommerce-form-login a,
.woocommerce-form-register a,
.login-form a,
.woocommerce form.login a,
.woocommerce form.register a {
    color: #667eea !important;
    text-decoration: none !important;
}

.woocommerce-form-login a:hover,
.woocommerce-form-register a:hover,
.login-form a:hover,
.woocommerce form.login a:hover,
.woocommerce form.register a:hover {
    color: #764ba2 !important;
    text-decoration: underline !important;
}

/* Remember me checkbox */
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row,
.login-form .form-row,
.woocommerce form.login .form-row,
.woocommerce form.register .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-login input[type="checkbox"],
.woocommerce-form-register input[type="checkbox"],
.login-form input[type="checkbox"],
.woocommerce form.login input[type="checkbox"],
.woocommerce form.register input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Login form messages */
.woocommerce-form-login .woocommerce-error,
.woocommerce-form-login .woocommerce-message,
.woocommerce-form-register .woocommerce-error,
.woocommerce-form-register .woocommerce-message,
.login-form .woocommerce-error,
.login-form .woocommerce-message {
    background: rgba(231, 76, 60, 0.1) !important;
    border: 1px solid #e74c3c !important;
    color: #c0392b !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
}

/* Required field indicators */
.woocommerce-form-login .required,
.woocommerce-form-register .required,
.login-form .required,
.woocommerce form.login .required,
.woocommerce form.register .required {
    color: #e74c3c !important;
}

/* =============================================================================
   WooCommerce My Account Page Content Fix
   ============================================================================= */

/* Fix white text on white background issues */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content div,
.woocommerce-account .woocommerce-MyAccount-content span,
.woocommerce-account .woocommerce-MyAccount-content li {
    color: #2d3748 !important;
}

/* Dashboard content */
.woocommerce-account .dashboard-welcome h2 {
    color: #2d3748 !important;
}

.woocommerce-account .dashboard-welcome p {
    color: #4a5568 !important;
}

/* Lost password page styling */
.woocommerce-lost-password,
.woocommerce-form-lost-password {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.woocommerce-lost-password label,
.woocommerce-form-lost-password label {
    color: #2d3748 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.woocommerce-lost-password input[type="text"],
.woocommerce-lost-password input[type="email"],
.woocommerce-form-lost-password input[type="text"],
.woocommerce-form-lost-password input[type="email"] {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #2d3748 !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce-lost-password input[type="text"]:focus,
.woocommerce-lost-password input[type="email"]:focus,
.woocommerce-form-lost-password input[type="text"]:focus,
.woocommerce-form-lost-password input[type="email"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

.woocommerce-lost-password .button,
.woocommerce-lost-password input[type="submit"],
.woocommerce-form-lost-password .button,
.woocommerce-form-lost-password input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.woocommerce-lost-password .button:hover,
.woocommerce-lost-password input[type="submit"]:hover,
.woocommerce-form-lost-password .button:hover,
.woocommerce-form-lost-password input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Lost password page text content */
.woocommerce-lost-password p,
.woocommerce-form-lost-password p {
    color: #4a5568 !important;
}

/* Account navigation links - ensure they're visible */
.woocommerce-account .woocommerce-MyAccount-navigation a {
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: #667eea !important;
    color: #ffffff !important;
}

/* Tables in account area */
.woocommerce-account table th {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #2d3748 !important;
}

.woocommerce-account table td {
    color: #2d3748 !important;
}

/* Account page headers and content */
.woocommerce-account .entry-header h1,
.woocommerce-account .entry-content h2,
.woocommerce-account .entry-content h3,
.woocommerce-account .entry-content p,
.woocommerce-account .woocommerce-MyAccount-content .entry-content,
.woocommerce-account .woocommerce-MyAccount-content .entry-content p {
    color: #2d3748 !important;
}

/* Fix any remaining white text issues */
.woocommerce-account .woocommerce-MyAccount-content * {
    color: #2d3748 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #667eea !important;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #764ba2 !important;
}

/* Override the previous white color rules for content area */
.woocommerce-account .woocommerce-MyAccount-content {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
}

/* Ensure forms in account area are readable */
.woocommerce-account .form-row label {
    color: #2d3748 !important;
}

.woocommerce-account .form-row input,
.woocommerce-account .form-row select,
.woocommerce-account .form-row textarea {
    background: #ffffff !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}
