/*
Theme Name: V7 Onboarding
Theme URI: https://solarlog.co.za
Author: AlexR
Description: Custom onboarding system for business registration
Version: 1.0
License: GPL v2 or later
Text Domain: v7-onboarding
*/

/* =============================================
   FONTAWESOME IMPORT
   ============================================= */
@import url('./css/vendor/fontawesome/all.min.css');

/* =============================================
   CSS IMPORTS (Page-specific & Component styles)
   ============================================= */
@import url('./css/onboarding-form.css');
@import url('./css/admin-meta-boxes.css');

/* === Star Rating Styles === */
.star-rating {
  font-size: 1.2rem;
  display: inline-flex;
  gap: 2px;
}

.star-rating .star {
  color: #ccc;
}

.star-rating .star.filled {
  color: #f39c12; /* gold */
}

.star-rating .star.empty {
  color: #ccc;
}

/* =============================================
   FRONTEND WIDGET MESSAGE BUBBLES
   ============================================= */
.ecaoa-msg {
    max-width: 75%;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 18px;
    word-wrap: break-word;
    clear: both;
}

.ecaoa-msg--user {
    background: #0084ff;
    color: white;
    float: right;
    border-bottom-right-radius: 4px;
}

.ecaoa-msg--admin {
    background: #f0f0f0;
    color: #333;
    float: left;
    border-bottom-left-radius: 4px;
}

/* Clear float after messages */
#chat-messages::after {
    content: "";
    display: table;
    clear: both;
}

/* =============================================
   ADMIN CHAT TABLE MESSAGE BUBBLES
   ============================================= */
.message-bubble {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 5px 0;
    position: relative;
}

.message-bubble.whatsapp {
    border-left: 4px solid #25D366;
    background: #f0fff4;
}

.message-bubble.website {
    border-left: 4px solid #007bff;
    background: #f8fbff;
}

.message-source {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* =============================================
   ADMIN CHAT REPLY MODAL STYLES
   ============================================= */
.ecaoa-source-whatsapp { 
    color: #25D366; 
}
.ecaoa-source-website { 
    color: #0073aa; 
}
.ecaoa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ecaoa-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.ecaoa-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ecaoa-modal-header h2 {
    margin: 0;
    font-size: 18px;
}
.ecaoa-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ecaoa-modal-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ecaoa-reply-messages {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 15px;
}
.ecaoa-reply-msg {
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
    clear: both;
}
.ecaoa-reply-msg--user {
    background: #edf2f7;
    color: #2d3748;
    float: right;
    text-align: right;
    margin-left: auto;
}
.ecaoa-reply-msg--admin {
    background: #667eea;
    color: white;
    float: left;
    text-align: left;
}
.ecaoa-reply-msg strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.8;
}
.ecaoa-reply-msg small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.7;
}
.ecaoa-reply-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ecaoa-reply-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

/* =============================================
   BASE THEME STYLES
   ============================================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f5f7fa;
}

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

/* =============================================
   GLOBAL STYLES
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

footer a {
  color: #3498db;
}

footer a:hover {
  color: #5dade2;
}

/* FontAwesome Icon Styles */
.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link,
.portfolio-details {
    color: white;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.portfolio-link:hover,
.portfolio-details:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.portfolio-categories i,
.portfolio-client i,
.portfolio-excerpt i {
    margin-right: 5px;
    color: #667eea;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.team-member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.9);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-member-image:hover .team-member-social {
    transform: translateY(0);
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
}

.team-member-position i,
.team-member-email i {
    margin-right: 8px;
    color: #667eea;
}

.testimonial-icon {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.testimonial-rating i {
    font-size: 1.25rem;
}

.testimonial-rating i.filled {
    color: #fbbf24;
}

.testimonial-rating i.empty {
    color: #e2e8f0;
}

.author-initial {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-position i,
.author-company i {
    margin-right: 5px;
    color: #667eea;
}

/* Blog Section Icons */
.post-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.post-date i {
    margin-right: 5px;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.post-category {
    background: #edf2f7;
    color: #4a5568;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.post-category i {
    margin-right: 3px;
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.875rem;
    color: #718096;
}

.post-meta i {
    margin-right: 5px;
    color: #667eea;
}

/* CTA Icons */
.cta-section h2 i {
    margin-right: 15px;
    font-size: 2.5rem;
    vertical-align: middle;
}

.wp-block-button__link i {
    margin-right: 8px;
}

/* Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-section .wp-block-button__link i {
    animation: float 3s ease-in-out infinite;
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

.site-description {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #2d3748;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

#primary-menu a:hover {
    color: #667eea;
}

#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

#primary-menu a:hover::after {
    width: 100%;
}

/* Header CTA */
.header-cta .cta-button {
    background: #667eea;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-cta .cta-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Page Header */
.page-header {
    background: #f7fafc;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    margin: 0;
    color: #2d3748;
    font-size: 2.5rem;
}

.archive-description {
    margin-top: 15px;
    color: #718096;
    font-size: 1.125rem;
}

/* Footer Styles */
.footer-widgets {
    background: #2d3748;
    color: #e2e8f0;
    padding: 60px 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #667eea;
}

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

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer-bottom {
    background: #1a202c;
    color: #a0aec0;
    padding: 30px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-info p {
    margin: 0;
}

.site-info a {
    color: #cbd5e0;
    text-decoration: none;
}

.site-info a:hover {
    color: #667eea;
}

#footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

#footer-menu a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a5568;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .menu-container.active {
        right: 0;
    }
    
    #primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    #primary-menu li {
        border-bottom: 1px solid #e2e8f0;
    }
    
    #primary-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .header-cta {
        margin-top: 20px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .site-info {
        flex-direction: column;
        gap: 15px;
    }
    
    #footer-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* =============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================= */

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a202c;
}

.section-header p {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
    color: #2d3748;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

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

.portfolio-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.portfolio-category {
    background: #edf2f7;
    color: #4a5568;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.875rem;
}

.portfolio-client {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.portfolio-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-content {
    padding: 0 10px;
}

.team-member-name {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.team-member-position {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member-bio {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-member-email {
    color: #4299e1;
    font-size: 0.9rem;
    text-decoration: none;
}

.team-member-email:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-item:before {
    content: '"';
    font-size: 5rem;
    color: #e2e8f0;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 3px;
}

.author-position,
.author-company {
    font-size: 0.9rem;
    color: #718096;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.posts-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.wp-block-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wp-block-post-content {
    padding: 25px;
}

.wp-block-post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* WordPress Block Compatibility */
.wp-block-group.has-background {
    padding: 40px;
}

.wp-block-columns {
    gap: 30px;
}

/* Button Styles */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid currentColor;
    background: transparent;
}

.wp-block-button.is-style-text .wp-block-button__link {
    background: transparent;
    padding: 0;
    color: #667eea;
}

/* Portfolio CTA */
.portfolio-cta {
    margin-top: 40px;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .team-member-image {
        width: 150px;
        height: 150px;
    }
    
    .posts-grid .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Contact Us form styling */
.v6-contact-form {
  margin-top: 24px;
  background: #ffffff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.v6-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.v6-contact-field label {
  display: block;
  margin-bottom: 8px;
  color: #4a5568;
  font-weight: 600;
}

.v6-contact-field input,
.v6-contact-field select,
.v6-contact-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

.v6-contact-field textarea {
  resize: vertical;
}

.v6-contact-field--full {
  grid-column: 1 / -1;
}

.v6-contact-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.v6-contact-submit {
  background: #667eea;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.v6-contact-submit:hover,
.v6-contact-submit:focus {
  background: #5a67d8;
}

.v6-contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #128c7e;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.v6-contact-whatsapp:hover,
.v6-contact-whatsapp:focus {
  background: #0f7a6e;
  color: #fff;
}

.v6-contact-whatsapp i {
  font-size: 1.25rem;
}

.v6-required {
  color: #e53e3e;
}

.v6-contact-consent {
  margin-top: 14px;
  color: #4a5568;
  font-size: 0.95rem;
}

.v6-contact-consent a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.v6-contact-alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.v6-contact-alert--success {
  background: #d4edda;
  color: #155724;
}

.v6-contact-alert--error {
  background: #f8d7da;
  color: #721c24;
}

/* Honeypot hidden from humans, visible to bots */
.v6-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Locations / Map */
.v6-contact-locations {
  margin: 24px 0;
  padding: 22px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.v6-contact-locations h2 {
  margin-bottom: 14px;
  color: #2d3748;
}

.v6-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v6-location-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fafc;
}

.v6-location-card .v6-location-body {
  padding: 14px 14px 4px;
}

.v6-location-card h3 {
  margin: 0 0 8px;
  color: #2d3748;
}

.v6-location-meta {
  margin: 0 0 10px;
  color: #4a5568;
}

.v6-location-meta p {
  margin: 0 0 8px;
}

.v6-location-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
}

/* Contact Page Chat CTA */
.v6-contact-chat-cta {
  background: #f0f9ff;
  border: 2px solid #25D366;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.v6-contact-chat-cta-title {
  margin: 0 0 10px;
  color: #25D366;
  font-size: 20px;
  font-weight: 600;
}

.v6-contact-chat-cta-icon {
  font-size: 24px;
  margin-right: 8px;
}

.v6-contact-chat-cta-desc {
  margin: 0 0 15px;
  color: #666;
  font-size: 14px;
}

.v6-contact-chat-cta-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: background 0.2s;
}

.v6-contact-chat-cta-btn:hover {
  background: #20ba5a;
}

.v6-contact-chat-cta-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #999;
}

@media (max-width: 720px) {
  .v6-contact-grid {
    grid-template-columns: 1fr;
  }
  .v6-location-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CHAT WIDGET (Progressive WhatsApp escalation)
   ============================================= */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 9999;
}

#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

#chat-widget.hidden {
  display: none;
}

.chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: #2d3748;
}

.chat-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  padding-right: 6px;
}

/* Clear float after messages */
#chat-messages::after {
  content: "";
  display: table;
  clear: both;
}

.ecaoa-msg {
  max-width: 75%;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 18px;
  word-wrap: break-word;
  clear: both;
  font-size: 14px;
  line-height: 1.5;
}

.ecaoa-msg--user {
  background: #0084ff;
  color: white;
  float: right;
  border-bottom-right-radius: 4px;
}

.ecaoa-msg--admin {
  background: #f0f0f0;
  color: #333;
  float: left;
  border-bottom-left-radius: 4px;
}

.chat-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.chat-input.hidden {
  display: none;
}

.chat-textarea {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

.chat-textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.chat-send-btn {
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #20ba5a;
}

#whatsapp-offer {
  background: #f0f9ff;
  border: 2px dashed #25D366;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

#whatsapp-offer.hidden {
  display: none;
}

/* =============================================
   CHAT REASON SELECTION SCREEN
   ============================================= */
.chat-step {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-step.hidden {
  display: none;
}

.reason-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.reason-btn {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.reason-btn:hover {
  background: #f7fafc;
  border-color: #25D366;
  transform: translateX(4px);
}

.reason-btn:active {
  transform: translateX(2px);
  background: #edf2f7;
}

/* =============================================
   ADMIN CHAT SESSIONS TABLE STYLES
   ============================================= */
.ecaoa-view-session-btn,
.ecaoa-reply-btn {
  white-space: nowrap;
}

.status-active {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #d4edda;
  color: #155724;
}

.status-escalated {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #fff3cd;
  color: #856404;
}

.status-whatsapp_active {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #d1ecf1;
  color: #0c5460;
}

.wp-list-table th {
  font-weight: 600;
}

.wp-list-table td {
  vertical-align: middle;
}

.whatsapp-offer-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: #2d3748;
}

.whatsapp-offer-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
}

.whatsapp-phone-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

.whatsapp-consent-label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}

.whatsapp-consent-label input[type="checkbox"] {
  margin-right: 6px;
}

.whatsapp-continue-btn {
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.whatsapp-continue-btn:hover {
  background: #20ba5a;
}

.status-indicator {
  font-size: 12px;
  color: #25D366;
}

.status-indicator.offline {
  color: #999;
}
