/* =====================================================
   CEK TARIF PAGE STYLES
   ===================================================== */

/* Hero Section */
.tarif-hero {
  position: relative;
  background: linear-gradient(rgba(13, 57, 104, 0.85), rgba(8, 37, 66, 0.9)), 
              url("../images/Isuzu-Elf.jpg") no-repeat center center/cover;
  padding: 160px 0 100px;
  margin-top: 0;
  overflow: hidden;
}

.tarif-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 57, 104, 0.3) 0%,
    rgba(8, 37, 66, 0.5) 100%
  );
  z-index: 0;
}

.tarif-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.tarif-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.tarif-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.tarif-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* Calculator Section */
.calculator-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Form Side */
.calculator-form-side {
  padding: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-header {
  margin-bottom: 35px;
}

.form-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header p {
  color: #64748b;
  font-size: 1rem;
}

.tarif-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group-tarif {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group-tarif label {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.form-group-tarif label i {
  color: var(--highlight);
  font-size: 1rem;
}

.form-input-tarif,
.form-select-tarif {
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background: white;
  color: var(--dark-color);
}

.form-input-tarif:focus,
.form-select-tarif:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(13, 57, 104, 0.1);
}

.form-select-tarif {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230d3968' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef3c7;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--highlight);
}

.form-note i {
  color: var(--highlight);
  margin-top: 2px;
  font-size: 1.1rem;
}

.form-note span {
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.5;
}

.btn-calculate {
  background: linear-gradient(135deg, var(--highlight) 0%, #d97706 100%);
  color: white;
  padding: 18px 35px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-calculate:active {
  transform: translateY(-1px);
}

/* Result Side */
.calculator-result-side {
  padding: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder */
.result-placeholder {
  text-align: center;
}

.placeholder-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.placeholder-icon i {
  font-size: 3.5rem;
  color: var(--highlight);
}

.result-placeholder h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.result-placeholder p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.6;
}

.placeholder-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.feature-item i {
  color: var(--highlight);
  font-size: 1.2rem;
}

.feature-item span {
  font-weight: 500;
}

/* Result Content */
.result-content {
  width: 100%;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header {
  text-align: center;
  margin-bottom: 35px;
}

.result-header i {
  font-size: 4rem;
  color: var(--highlight);
  margin-bottom: 15px;
  display: block;
}

.result-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

.result-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  opacity: 0.9;
}

.detail-value {
  font-weight: 700;
  color: var(--highlight);
}

.result-price {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.price-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--highlight);
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.price-note {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-whatsapp,
.btn-reset {
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Info Section */
.tarif-info-section {
  padding: 80px 0;
  background: white;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.info-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 57, 104, 0.1);
  border-color: var(--primary-color);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(13, 57, 104, 0.2);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.info-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Coverage Section */
.coverage-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.coverage-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.coverage-content h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.coverage-content p {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 35px;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
}

.coverage-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.coverage-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coverage-item i {
  color: var(--highlight);
  font-size: 1.2rem;
}

.coverage-item span {
  font-weight: 500;
  color: var(--dark-color);
}

.coverage-image {
  position: relative;
}

.coverage-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

/* CTA Section */
.cta-tarif {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-tarif::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .calculator-result-side {
    min-height: 400px;
  }

  .coverage-wrapper {
    grid-template-columns: 1fr;
  }

  .coverage-image {
    order: -1;
  }

  .tarif-hero {
    padding: 140px 0 80px;
  }

  .tarif-hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .calculator-form-side,
  .calculator-result-side {
    padding: 30px;
  }

  .tarif-hero {
    padding: 120px 0 60px;
  }

  .tarif-hero-content h1 {
    font-size: 1.8rem;
  }

  .tarif-hero-content p {
    font-size: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .price-value {
    font-size: 2.2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

/* PROMO STYLES */
.promo-badge-top {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
  text-transform: uppercase;
}

.promo-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.promo-price-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  z-index: 0;
  animation: rotate 20s linear infinite;
}

.original-price {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.result-price .price-value {
  font-size: 3.5rem;
  color: #fbbf24;
  text-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  position: relative;
  z-index: 1;
}

.save-amount {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 15px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  position: relative;
  z-index: 1;
}

.show-promo-animation .price-value {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Route Cards Styling */
.route-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 57, 104, 0.1);
    border-color: var(--primary-color);
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.route-card h3 {
    margin: 0 0 10px 0;
    color: var(--dark-color, #1e293b);
    font-size: 1.1rem;
    font-weight: 700;
}

.route-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.route-card strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-route {
    margin-top: auto;
    padding-top: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.route-card:hover .btn-route {
    gap: 12px;
    color: var(--highlight, #f59e0b);
}
