/* Service page — assets/user-new/service/service.css */

.service-page {
  --sv-pad: 12px 24px;
  --sv-radius: 10px;
  --sv-form-bg: #f3f3f3;
  --sv-section-bg: #ebebeb;
  --sv-input-bg: #fafafa;
  --sv-input-border: #d0d0d0;
  --sv-text: #111;
  --sv-muted: #555;
  --sv-black: #111;
  font-family: 'Montserrat', sans-serif;
}

.service-page:not(:has(.hero)) {
  margin-top: 80px;
}

.service-layout {
  padding: var(--sv-pad);
}

.service-layout__box {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  border-radius: var(--sv-radius);
  overflow: hidden;
  /* background: var(--sv-form-bg); */
}

.service-layout__box--no-media {
  grid-template-columns: 1fr;
}

.service-layout__media {
  background: #1a1a1a center / cover no-repeat;
  min-height: 100%;
  height: auto;
}

.service-layout__form-wrap {
  position: relative;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  max-height: none;
}

.service-form-panel.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.service-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1E1E1E;
}

.service-subtitle {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
}

.service-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-section {
  background: #F6F6F6;
  /* border-radius: 8px; */
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1E1E1E;
}

.service-input {
  width: 100%;
  border: 1px solid var(--sv-input-border);
  background: var(--sv-input-bg);
  border-radius: 0;
  padding: 11px 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1E1E1E;
  outline: none;
  transition: border-color 0.15s ease;
}

.service-input::placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.5);
  opacity: 1;
}

.service-input::-webkit-input-placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.5);
  opacity: 1;
}

.service-input::-moz-placeholder {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.5);
  opacity: 1;
}

.service-input:focus {
  border-color: #888;
}

.service-input.service-input--error {
  border-color: #dc2626;
}

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

.service-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13L6 7H14L10 13Z' fill='black'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 36px;
  color: #1E1E1E;
}

.service-select.is-placeholder {
  color: rgba(30, 30, 30, 0.5);
  font-weight: 500;
}

.service-select option {
  color: #1E1E1E;
  font-weight: 500;
}

.service-select option[value=""] {
  color: rgba(30, 30, 30, 0.5);
}

.service-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.service-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--sv-input-border);
  border-radius: 0;
  overflow: hidden;
  background: var(--sv-input-bg);
}

.service-phone.service-input--error {
  border-color: #dc2626;
}

.service-phone__prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #eee;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--sv-input-border);
  color: #000;
}

.service-phone__prefix img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.service-phone__input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.service-date-wrap {
  position: relative;
  border: 1px solid var(--sv-input-border);
  background: var(--sv-input-bg);
}

.service-date-wrap:focus-within {
  border-color: #888;
}

.service-date-wrap.is-error {
  border-color: #dc2626;
}

.service-date.service-input {
  position: relative;
  z-index: 2;
  border: none !important;
  background: transparent !important;
  color: transparent;
  padding-right: 40px;
  box-shadow: none;
}

.service-date.has-value {
  color: #1E1E1E !important;
}

.service-date:focus:not(.has-value) {
  color: transparent !important;
}

.service-date::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.service-date-placeholder {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.5);
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-date-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.service-date-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.service-date-wrap.is-filled .service-date-placeholder {
  display: none;
}

.service-error {
  min-height: 0;
  font-size: 0.72rem;
  color: #dc2626;
}

.service-error:empty {
  display: none;
}

.service-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 12px auto 0;
  align-self: center;
  border: none;
  border-radius: 4px;
  background: var(--sv-black);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.2s ease;
  box-sizing: border-box;
}

.service-submit-text,
.service-submit-loading {
  text-transform: uppercase;
}

.service-submit:hover {
  background: #000;
}

.service-submit:hover .btn-cta-icon {
  width: 24px;
  margin-left: 8px;
  opacity: 1;
}

.service-submit:hover .btn-cta-icon__dash {
  opacity: 1;
}

.service-submit:hover .btn-cta-icon__arrow {
  opacity: 1;
  transition-delay: 0.22s;
}

.service-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.service-submit:disabled:hover .btn-cta-icon {
  width: 0;
  margin-left: 0;
  opacity: 0;
}

.service-submit.is-loading .btn-cta-icon {
  display: none;
}

.service-success-panel {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  background: var(--sv-form-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: serviceFadeIn 0.4s ease both;
}

.service-success-panel.is-visible {
  display: flex;
}

.service-success-icon {
  margin-bottom: 20px;
}

.service-success-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--sv-text);
}

.service-success-msg {
  margin: 0 0 28px;
  max-width: 360px;
  font-size: 0.95rem;
  color: var(--sv-text);
  line-height: 1.55;
}

.service-success-panel .service-submit {
  width: 452px;
  max-width: 100%;
}

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

@media (max-width: 900px) {
  .service-page {
    --sv-pad: 12px 16px;
  }

  .service-layout__box {
    grid-template-columns: 1fr;
  }

  .service-layout__media {
    min-height: 220px;
    height: 220px;
  }

  .service-field-row {
    grid-template-columns: 1fr;
  }
}
