/* ===================================
   Ecogloo Cleaning Theme - Components CSS
   =================================== */

/* ===================================
   NEWSLETTER SECTION STYLES
   =================================== */

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2a4a8a 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    border-radius: 8px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.newsletter-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.newsletter-form-container {
    flex: 0 0 auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form-fields {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.newsletter-email {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 250px;
    transition: all 0.3s ease;
}

.newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-email:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--brand-sky);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: #0088cc;
    transform: translateY(-1px);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-submit i {
    font-size: 0.875rem;
}

.newsletter-message {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.newsletter-message.success {
    background: rgba(139, 197, 74, 0.2);
    color: #8bc53f;
    border: 1px solid rgba(139, 197, 74, 0.3);
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Newsletter Animation */
.newsletter-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.newsletter-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .newsletter-form-fields {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-email {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-submit {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-description {
        font-size: 0.875rem;
    }
}

/* ===================================
   CALENDLY INTEGRATION STYLES
   =================================== */

/* Calendly Inline Container */
.calendly-inline-container {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
}

.calendly-inline-container .calendly-inline-widget {
  border-radius: 1rem;
  overflow: hidden;
}

/* Calendly Floating Widget - Let Calendly handle its own styling */

/* Ensure Calendly popup is fully interactive */
.calendly-overlay {
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

.calendly-popup {
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

.calendly-popup-content {
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

.calendly-popup-content iframe {
  pointer-events: auto !important;
  z-index: 9999999 !important;
}

/* Ensure close button is clickable */
.calendly-popup-close {
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

.calendly-close-overlay {
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

/* Custom Calendly Button Styling */
.calendly-badge-widget {
  background: var(--brand-blue) !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(30, 54, 112, 0.3) !important;
  border: none !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.calendly-badge-content {
  background: var(--brand-blue) !important;
  color: white !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  border: none !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

.calendly-badge-widget:hover {
  background: var(--brand-sky) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 54, 112, 0.4) !important;
}

.calendly-badge-widget:hover .calendly-badge-content {
  background: var(--brand-sky) !important;
}

.calendly-badge-widget:active {
  transform: translateY(0) !important;
}

/* Mobile Calendly Button Styling */
@media (max-width: 768px) {
  .calendly-badge-widget {
    border-radius: 25px !important;
  }
  
  .calendly-badge-content {
    font-size: 13px !important;
    padding: 10px 16px !important;
    min-height: 44px !important; /* Better touch target */
  }
  
  .calendly-badge-widget:hover {
    transform: none !important; /* Disable hover effects on mobile */
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .calendly-badge-content {
    font-size: 12px !important;
    padding: 8px 14px !important;
  }
}

/* Calendly Popup Text Link */
.calendly-popup-link {
  color: var(--brand-sky);
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.calendly-popup-link:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

/* Calendly Button Variants */
.btn-calendly {
  background: #10B981;
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  cursor: pointer;
}

.btn-calendly:hover {
  background: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  color: var(--white);
  text-decoration: none;
}

.btn-calendly:active {
  transform: translateY(0);
}

.btn-calendly i {
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

/* Responsive Calendly Widget */
@media (max-width: 768px) {
  .calendly-widget-container.bottom-right,
  .calendly-widget-container.bottom-left {
    bottom: 1rem;
  }
  
  .calendly-widget-container.bottom-right {
    right: 1rem;
  }
  
  .calendly-widget-container.bottom-left {
    left: 1rem;
  }
  
  .calendly-widget-container.top-right,
  .calendly-widget-container.top-left {
    top: 1rem;
  }
  
  .calendly-widget-container.top-right {
    right: 1rem;
  }
  
  .calendly-widget-container.top-left {
    left: 1rem;
  }
  
  .calendly-inline-container {
    margin: 1rem 0;
    border-radius: 0.75rem;
  }
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */

/* Breadcrumbs */
.breadcrumbs {
    background: linear-gradient(to bottom, #F3F4F6, #E5E7EB);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--brand-blue);
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb-arrow {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
    }
    
    .breadcrumbs-list {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .breadcrumb-arrow {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 54, 112, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-sky);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 54, 112, 0.4);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .back-to-top svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Reading Progress Bar - TEMPORARILY DISABLED */
.reading-progress-bar {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
    width: 0%;
    transition: width 0.1s ease;
}

/* Social Sharing Bar - removed */

/* Sticky CTA Bar - Removed */

/* Popup removed */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: var(--white);
  box-shadow: 0 4px 6px rgba(30, 54, 112, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(30, 54, 112, 0.3);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
  background-color: var(--brand-blue);
  color: var(--white);
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-light);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 54, 112, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--brand-blue);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.badge-success {
  background-color: var(--brand-lime);
  color: var(--white);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  border-top-color: var(--brand-blue);
  animation: spin 1s ease-in-out infinite;
}

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

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-dark);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1000;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

/* Accordion */
.accordion {
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: var(--bg-light);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f3f4f6;
}

.accordion-content {
  padding: 1rem 1.5rem;
  display: none;
}

.accordion-content.active {
  display: block;
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.tab-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-item {
  margin-right: 0.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.tab-button.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
