/* ==========================================================================
   DreamBiz Solutions - Component & Interactive UI Styles
   ========================================================================== */

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  background-image: 
    linear-gradient(135deg, rgba(11, 19, 43, 0.94) 0%, rgba(15, 23, 42, 0.88) 50%, rgba(7, 13, 30, 0.96) 100%),
    url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8.5rem 0 5rem;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content .hero-badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #FFF 20%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: #CBD5E1;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Hero Quick Lead Card */
.hero-card {
  background: rgba(28, 37, 65, 0.8);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--accent-gold);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.hero-card h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(11, 19, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 167, 44, 0.2);
  background: rgba(11, 19, 43, 0.95);
}

.form-control::placeholder {
  color: #64748B;
}

.form-select option {
  background: #0B132B;
  color: #FFFFFF;
}

/* Light Form Theme (for white sections) */
.form-light .form-label {
  color: var(--text-main);
}

.form-light .form-control,
.form-light .form-select {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: var(--text-main);
}

.form-light .form-control:focus,
.form-light .form-select:focus {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- 6 CORE SERVICE CARDS GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 167, 44, 0.5);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--brand-blue));
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--accent-gold);
  color: #0B132B;
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.service-feature-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.service-feature-list li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-card-link:hover {
  color: var(--accent-gold);
  gap: 0.75rem;
}

/* Dark Service Card Variant (for Dark Sections) */
.service-card-dark {
  background: var(--bg-card-dark);
  border-color: var(--border-dark);
}

.service-card-dark h3 {
  color: #FFFFFF;
}

.service-card-dark p {
  color: var(--text-light-muted);
}

.service-card-dark .service-feature-list {
  border-top-color: var(--border-dark);
}

.service-card-dark .service-feature-list li {
  color: var(--text-light-muted);
}

.service-card-dark .service-icon-box {
  background: rgba(212, 167, 44, 0.15);
  color: var(--accent-gold);
}

/* --- STEP-BY-STEP PROCESS TIMELINE --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.step-num-badge {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(212, 167, 44, 0.12);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-gold);
}

.process-step h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.process-step p {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* --- INTERACTIVE CALCULATOR SECTION --- */
.calc-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  overflow: hidden;
}

.calc-inputs {
  padding: 3rem;
}

.calc-summary {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-option-group {
  margin-bottom: 2rem;
}

.calc-option-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.calc-chip {
  padding: 0.65rem 1.15rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.calc-chip:hover {
  border-color: var(--brand-blue);
  background: #EFF6FF;
}

.calc-chip.active {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.calc-estimate-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.calc-estimate-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.calc-price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.calc-items-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.calc-items-list li {
  font-size: 0.85rem;
  color: #CBD5E1;
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* --- COMPARISON TABLE (MAINLAND VS FREEZONE VS OFFSHORE) --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--primary-dark);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.comparison-table th.highlight {
  background: var(--secondary-dark);
  border-top: 3px solid var(--accent-gold);
  color: var(--accent-gold);
}

.comparison-table tr:hover td {
  background: #F8FAFC;
}

.comparison-table td.highlight {
  background: rgba(212, 167, 44, 0.04);
  font-weight: 600;
}

/* --- PAID CONSULTATION CARDS & BOOKING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 167, 44, 0.15);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  color: #0B132B;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 1rem 0 1.5rem;
}

.pricing-price span.period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.pricing-features li svg {
  color: #10B981;
  flex-shrink: 0;
}

/* --- SMART AI ASSISTANT / CHATBOT WIDGET --- */
.chatbot-toggle-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  color: #0B132B;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 167, 44, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 9990;
  transition: all var(--transition-normal);
}

.chatbot-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(212, 167, 44, 0.6);
}

.chatbot-toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.chatbot-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 30px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9995;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.chatbot-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-gold);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0B132B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.chatbot-title h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin: 0;
}

.chatbot-title span {
  font-size: 0.75rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chatbot-title span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  cursor: pointer;
}

.chatbot-close-btn:hover {
  color: #FFFFFF;
}

.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #F8FAFC;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.885rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid #E2E8F0;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
  background: var(--primary-dark);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chat-chip-btn {
  background: #FFFFFF;
  border: 1px solid var(--accent-gold);
  color: var(--primary-dark);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.chat-chip-btn:hover {
  background: var(--accent-gold);
  color: #0B132B;
}

.chatbot-input-bar {
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-input-bar input {
  flex: 1;
  border: 1px solid #CBD5E1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.885rem;
  outline: none;
}

.chatbot-input-bar input:focus {
  border-color: var(--brand-blue);
}

.chatbot-send-btn {
  background: var(--primary-dark);
  color: var(--accent-gold);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.chatbot-send-btn:hover {
  background: var(--accent-gold);
  color: #0B132B;
}

/* Floating WhatsApp Direct Chat */
.whatsapp-float-btn {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 9989;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

/* Modal UI */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-gold);
}

.modal-header h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 2rem;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0B132B;
  color: #FFFFFF;
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
