/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'faricy-new-web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

p {
  margin: 1.25rem 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 6.25%;
  }
}

.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e7e5e4;
  padding: 0.5rem 1.25rem 0.75rem;
}

.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
}


.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.breadcrumb-item {
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb-separator {
  display: block;
}

.breadcrumb-item.active {
  text-decoration: underline;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #facc15;
  color: #000;
}

.btn-primary:hover {
  background-color: #eab308;
}

.btn-icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.header-nav {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e7e5e4;
}

@media (min-width: 768px) {
  .header-nav {
    padding: 1rem 6.25%;
  }
}

.logo {
  width: 80px;
  height: auto;
}

@media (min-width: 768px) {
  .logo {
    width: 100px;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-list {
    gap: 1.5rem;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.nav-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* Main Content */
.main-content {
  padding-top: 170px;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .main-content {
    padding-top: 190px;
  }
}

.step-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f3f4f6;
  border-left: 4px solid #d1d5db;
  padding: 15px 20px;
  width: calc(100% - 30px);
  margin: 15px auto;
  max-width: 600px;
  border-radius: 0.5rem;
  box-sizing: border-box;
  color: #0f172a;
}

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

.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #a1a1aa;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1.25rem 0.8125rem 0.625rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  color: #737373;
}

.form-input::placeholder,
.form-select::placeholder {
  opacity: 0.5;
  color: #a1a1aa;
}

@media (min-width: 768px) {
  .form-input,
  .form-select {
    font-size: 1.125rem;
    padding: 1.5rem 1.25rem 0.625rem;
  }
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #facc15;
}

.renewal-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.renewal-info {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.65;
}

.renewal-info p {
  margin: 0.75rem 0;
}

.renewal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}


.card-number-field {
  position: relative;
}

.card-number-field .form-input {
  padding-right: 3.5rem;
}

.card-number-field::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 34px;
  height: 22px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card-number-field[data-card-brand="visa"]::after {
  opacity: 1;
  background-image: url('style/card-visa.svg');
}

.card-number-field[data-card-brand="mastercard"]::after {
  opacity: 1;
  background-image: url('style/card-mastercard.svg');
}

.form-group-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: flex-end;
}

.form-group-split .split-field {
  min-width: 0;
}

.form-input.field-error,
.form-select.field-error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.field-error-message {
  font-size: 0.75rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

.privacy-notice {
  font-size: 11px;
  line-height: 17px;
  color: #52525b;
  margin: 25px 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  border: none;
  font-style: italic;
}

@media (min-width: 768px) {
  .privacy-notice {
    font-size: 12px;
    line-height: 19px;
    margin: 30px 0;
  }
}

.privacy-notice p {
  margin: 0;
}

/* Cards */
.card {
  border: 1px solid #facc15;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1.5rem auto;
  max-width: 820px;
}

@media (min-width: 768px) {
  .card {
    border-radius: 1.5rem;
  }
}

.payment-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.payment-grid .card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s, background 0.2s;
}

.delivery-option input {
  accent-color: #facc15;
}

.delivery-option:hover {
  border-color: #facc15;
  background-color: #fefce8;
}

.card-header {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #facc15;
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 1rem 0 1rem 0;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .card-header {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

.card-header img {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .card-header img {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.card-body {
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .card-body {
    padding: 2rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .card-body {
    padding: 2rem 1.5rem;
  }
}

.payment-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .payment-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.summary-card {
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-card strong {
  font-size: 1.5rem;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s, background 0.2s;
}

.delivery-option input {
  accent-color: #facc15;
}

.delivery-option:hover {
  border-color: #facc15;
  background-color: #fefce8;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: right;
}

.progress-step::before {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #000;
}

.progress-step.active {
  color: #000;
}

.progress-step.active .step-label {
  background-color: #facc15;
  padding: 0.1875rem 0.375rem;
  border-radius: 0.375rem;
}

.progress-step.inactive {
  color: #a1a1aa;
}

.progress-step.inactive::before {
  background-color: #a1a1aa;
}

/* Footer */
.footer {
  background-color: #facc15;
  margin-top: 4rem;
}

.footer-logo {
  background-color: #fff;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .footer-logo {
    padding: 1.25rem 1.875%;
  }
}

.footer-logo img {
  width: 100px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1.25rem;
}

@media (min-width: 768px) {
  .footer-nav {
    padding: 4rem 1.875%;
    gap: 4rem;
  }
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-weight: 900;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.8125rem;
}

.footer-link {
  font-weight: 500;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

@media (min-width: 768px) {
  .footer-link {
    font-size: 1.125rem;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding: 1.5rem 1.875%;
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 1.5rem;
    justify-content: flex-start;
  }
}

.footer-links a {
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer-copyright {
  font-size: 0.6875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    order: -1;
  }
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link img {
  width: 100%;
  height: 100%;
}

/* Traffic Popup */
.traffic-container {
  position: fixed;
  bottom: 4.875rem;
  right: 1.25rem;
  z-index: 9;
}

.traffic-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgb(241, 231, 47);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.traffic-button:hover {
  transform: scale(1.05);
}

.traffic-button:active {
  transform: scale(0.95);
}

.traffic-popup {
  position: absolute;
  bottom: 3.625rem;
  right: 0;
  width: 20rem;
  background: white;
  box-shadow: rgba(46, 35, 35, 0.15) 0px 32px 32px 0px;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .traffic-popup {
    width: 25rem;
  }
}

.traffic-popup-header {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  font-weight: bold;
}

.traffic-popup-header img {
  width: 2rem;
  height: 2rem;
  margin-right: 0.625rem;
}

.traffic-status {
  width: 0.625rem;
  height: 0.625rem;
  background-color: #22c55e;
  border-radius: 50%;
  border: 4px solid #f5f5f4;
  margin-left: auto;
}

.traffic-popup-content {
  max-height: 25rem;
  overflow-y: auto;
}

.traffic-item {
  padding: 1.25rem;
  border-top: 1px solid #e7e5e4;
}

.traffic-badge {
  display: inline-block;
  background-color: #facc15;
  font-size: 0.6875rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.1875rem 0.375rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.traffic-time {
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.traffic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: #facc15;
  font-weight: 600;
  font-size: 1.125rem;
}

.traffic-link:hover {
  background-color: #eab308;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: rgba(65, 66, 80, 0.1) 0px 24px 24px 0px;
  border-radius: 0 0 0.75rem 0.75rem;
  max-height: 25rem;
  overflow-y: auto;
  z-index: 1;
  list-style: none;
}

.dropdown-item {
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #e7e5e4;
  color: #000;
}

.dropdown-item.active {
  background-color: #e7e5e4;
  color: #000;
}

/* Warning Page Styles */
.warning-container {
  padding: 2rem 0;
}

.warning-message {
  width: 100%;
  max-width: 900px;
}

.warning-content {
  background: #fff;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .warning-content {
    padding: 3rem 0;
  }
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}
