/* =========================================================
   Rental Page
========================================================= */

.rental-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

/* =========================================================
   Sticky Tabs
========================================================= */

.rental-page-tabs {
  position: sticky;
  top: 64px;
  z-index: 40;

  width: 100%;

  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.rental-page-tabs__inner {
  display: flex;
  justify-content: center;
  gap: 8px;

  width: 100%;
  max-width: 1280px;

  margin: 0 auto;
  padding: 0 16px;
}

.rental-page-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 32px;

  border-bottom: 3px solid transparent;

  color: #666666;
  background: transparent;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;

  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.rental-page-tab:hover {
  color: #023da5;
}

.rental-page-tab.active {
  color: #023da5;
  border-bottom-color: #023da5;
}

.rental-tab-panel[hidden] {
  display: none !important;
}

/* =========================================================
   Service Page
========================================================= */

.rental-service {
  width: 100%;
  padding: 40px 0;
  background: #ffffff;
}

.rental-service__container {
  width: 100%;
  max-width: 1024px;

  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   Service Hero
========================================================= */

.rental-service-hero {
  margin-bottom: 64px;
  text-align: center;
}

.rental-service-hero h1 {
  margin: 0;
  padding: 0 16px;

  color: #1a1a1a;

  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.04em;

  word-break: keep-all;
}

.rental-service-hero h1 strong {
  color: #023da5;
  font-weight: 700;
}

.rental-service-hero__action {
  margin-top: 32px;
}

.rental-consultation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 12px 32px;

  border-radius: 12px;

  background: #023da5;
  color: #ffffff;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;

  box-shadow:
    0 10px 15px -3px rgba(2, 61, 165, 0.2),
    0 4px 6px -4px rgba(2, 61, 165, 0.2);

  transition:
    background-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.rental-consultation-button:hover {
  background: #012f82;

  box-shadow:
    0 20px 25px -5px rgba(2, 61, 165, 0.2),
    0 8px 10px -6px rgba(2, 61, 165, 0.18);
}

/* =========================================================
   Benefits
========================================================= */

.rental-service-benefits {
  margin-bottom: 64px;
}

.rental-service-benefits > h2,
.rental-recommend > h2 {
  margin: 0 0 32px;

  color: #1a1a1a;

  text-align: center;

  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.03em;

  word-break: keep-all;
}

.rental-service-benefits__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.rental-service-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  min-width: 0;
  padding: 24px;

  border: 1px solid rgba(2, 61, 165, 0.2);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(2, 61, 165, 0.05),
      rgba(2, 61, 165, 0.1)
    );
}

.rental-service-benefit__icon {
  flex: 0 0 24px;

  width: 24px;
  height: 24px;
  margin-top: 4px;

  color: #023da5;
}

.rental-service-benefit p {
  margin: 0;

  color: #1a1a1a;

  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;

  word-break: keep-all;
}

/* =========================================================
   Recommend Cards
========================================================= */

.rental-recommend__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.rental-recommend-card {
  overflow: hidden;

  border: 2px solid #e5e7eb;
  border-radius: 16px;

  background: #ffffff;

  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.rental-recommend-card:hover {
  border-color: rgba(2, 61, 165, 0.5);

  box-shadow:
    0 10px 15px -3px rgba(15, 23, 42, 0.1),
    0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.rental-recommend-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  background: #ffffff;
}

.rental-recommend-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.rental-recommend-card__body {
  padding: 24px;
}

.rental-recommend-card__body p {
  margin: 0;

  color: #1a1a1a;

  text-align: center;

  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;

  word-break: keep-all;
}

/* =========================================================
   Consultation Modal
========================================================= */

body.rental-modal-open {
  overflow: hidden;
}

.rental-consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
}

.rental-consultation-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);
}

.rental-consultation-modal__dialog {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 672px;
  max-height: 90vh;

  overflow-y: auto;

  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.rental-consultation-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 16px 24px;

  border-bottom: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;

  background: #ffffff;
}

.rental-consultation-modal__header h2 {
  margin: 0;

  color: #1a1a1a;

  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}

.rental-consultation-modal__close {
  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 8px;

  color: #1a1a1a;

  transition: background-color 200ms ease;
}

.rental-consultation-modal__close:hover {
  background: #f3f4f6;
}

.rental-consultation-modal__close svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   Consultation Form
========================================================= */

.rental-consultation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px;
}

.rental-consultation-form__notice {
  margin: 0;

  color: #666666;

  font-size: 14px;
  line-height: 1.5;
}

.rental-consultation-form__notice span,
.rental-form-group label > span,
.rental-form-group legend > span {
  color: #ef4444;
}

.rental-form-group {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.rental-form-group label,
.rental-form-group legend {
  display: block;

  margin: 0 0 8px;

  color: #1a1a1a;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.rental-form-group input,
.rental-form-group textarea {
  display: block;

  width: 100%;
  padding: 12px 16px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;
  color: #1a1a1a;

  font-size: 16px;
  line-height: 1.5;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.rental-form-group input {
  min-height: 48px;
}

.rental-form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.rental-form-group input:focus,
.rental-form-group textarea:focus {
  border-color: #023da5;
  outline: none;

  box-shadow: 0 0 0 3px rgba(2, 61, 165, 0.12);
}

.rental-purpose-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rental-purpose-option {
  position: relative;

  display: inline-flex;
  margin: 0 !important;

  cursor: pointer;
}

.rental-purpose-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.rental-purpose-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 84px;
  min-height: 44px;
  padding: 10px 24px;

  border: 2px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;
  color: #374151 !important;

  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;

  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.rental-purpose-option input:checked + span {
  border-color: #023da5;

  background: #023da5;
  color: #ffffff !important;
}

.rental-purpose-option input:focus-visible + span {
  outline: 3px solid rgba(2, 61, 165, 0.2);
  outline-offset: 2px;
}

.rental-consultation-form__submit {
  width: 100%;
  min-height: 56px;
  padding: 16px;

  border-radius: 12px;

  background: #023da5;
  color: #ffffff;

  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;

  transition: background-color 200ms ease;
}

.rental-consultation-form__submit:hover {
  background: #012f82;
}

/* =========================================================
   Tablet
========================================================= */

@media (min-width: 768px) {
  .rental-service {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .rental-service__container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .rental-service-hero {
    margin-bottom: 64px;
  }

  .rental-service-hero h1 {
    font-size: 36px;
  }

  .rental-consultation-button {
    min-height: 56px;
    padding: 16px 48px;
    font-size: 18px;
  }

  .rental-service-benefits__grid,
  .rental-recommend__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Desktop
========================================================= */

@media (min-width: 1024px) {
  .rental-service__container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .rental-service-hero h1 {
    font-size: 48px;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .rental-page-tabs {
    top: 64px;
  }

  .rental-page-tabs__inner {
    padding: 0 8px;
  }

  .rental-page-tab {
    flex: 1 1 0;
    padding: 10px 16px;
    font-size: 15px;
  }

  .rental-service-hero {
    margin-bottom: 48px;
  }

  .rental-service-benefits {
    margin-bottom: 48px;
  }

  .rental-service-benefits > h2,
  .rental-recommend > h2 {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .rental-service-benefit p {
    font-size: 16px;
  }

  .rental-consultation-modal {
    align-items: flex-end;
    padding: 0;
  }

  .rental-consultation-modal__dialog {
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .rental-consultation-modal__header {
    padding: 14px 16px;
  }

  .rental-consultation-modal__header h2 {
    font-size: 20px;
  }

  .rental-consultation-form {
    padding: 20px 16px 28px;
  }
}


.rental-consultation-modal {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.rental-consultation-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rental-consultation-modal__backdrop {
  opacity: 0;
  transition: opacity 200ms ease;
}

.rental-consultation-modal.is-open
.rental-consultation-modal__backdrop {
  opacity: 1;
}

.rental-consultation-modal__dialog {
  opacity: 0;
  transform: translateY(16px) scale(0.98);

  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.rental-consultation-modal.is-open
.rental-consultation-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rental-consultation-modal[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .rental-consultation-modal__dialog {
    transform: translateY(32px);
  }

  .rental-consultation-modal.is-open
  .rental-consultation-modal__dialog {
    transform: translateY(0);
  }
}