/* ==========================================================
   Tamilan Groups - Components & Interactive UI (Mobile-First)
   Version: 2.1
   ========================================================== */

/* Page Headers for subpages */
.page-header {
  padding: 2.25rem 0 1.75rem;
  background: var(--dark-bg);
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.2) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, rgba(255, 152, 0, 0.15) 0%, transparent 40%);
  color: white;
  text-align: center;
  width: 100%;
}

.page-header h1 {
  color: white;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.page-header p {
  color: #94a3b8;
  font-size: 0.88rem;
  max-width: 600px;
  margin: 0 auto 0.85rem;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.breadcrumb-nav a {
  color: #cbd5e1;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: #64748b;
}

/* Floating Action Dock */
.floating-actions {
  position: fixed;
  bottom: 0.85rem;
  right: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 990;
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.float-whatsapp {
  background: #25d366;
}

.float-call {
  background: var(--primary);
}

.float-scroll-top {
  background: #1e293b;
  opacity: 0;
  pointer-events: none;
  font-size: 0.9rem;
}

.float-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 0.65rem;
  box-sizing: border-box;
}

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

.modal-container {
  background: white;
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-bg);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close-btn {
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem;
}

.modal-body {
  padding: 1.15rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--light-bg);
}

.modal-footer .btn {
  width: 100%;
}

/* Calculator Styles (Mobile-First) */
.calculator-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  width: 100%;
}

.calc-step {
  margin-bottom: 1.25rem;
  width: 100%;
}

.calc-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calc-step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.calc-radio-card {
  position: relative;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  width: 100%;
}

.calc-radio-card.active, .calc-radio-card:hover {
  border-color: var(--primary);
  background: rgba(255, 87, 34, 0.05);
}

.calc-icon {
  font-size: 1.25rem;
  color: var(--primary);
}

.calc-card-name {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
}

.calc-card-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.calc-addon-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
}

.addon-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 0.25rem;
}

.addon-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.addon-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff9800;
}

.calc-result-box {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.calc-result-header {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.calc-price-display {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ff9800;
  margin-bottom: 0.5rem;
}

.calc-features-summary {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.calc-features-summary li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

/* Contact Form (Mobile-First) */
.contact-info-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.contact-info-card h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-info-card p {
  color: #94a3b8;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.c-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.c-detail-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 87, 34, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.c-detail-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.c-detail-value {
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
}

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-border);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 0.88rem;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.toast-msg {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  left: 0.85rem;
  background: #0f172a;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10001;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

/* ==========================================================
   DESKTOP ENHANCEMENTS FOR COMPONENTS (MIN-WIDTH: 769px)
   ========================================================== */
@media (min-width: 769px) {
  .page-header {
    padding: 3.5rem 0 2.75rem;
  }

  .page-header h1 {
    font-size: 2.75rem;
  }

  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 0.75rem;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }

  .modal-footer .btn {
    width: auto;
  }

  .calculator-card {
    padding: 2rem;
  }

  .calc-radio-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .calc-radio-card {
    padding: 1rem 0.75rem;
  }

  .calc-card-name {
    font-size: 0.9rem;
  }

  .calc-result-box {
    padding: 2rem;
  }

  .calc-price-display {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
  }

  .contact-info-card, .contact-form-card {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .toast-msg {
    top: 1.25rem;
    right: 1.25rem;
    left: auto;
    max-width: 380px;
  }
}
