@charset "UTF-8";
/* ==========================================================================
   Spiral Form Modern UI v4.0 - Genius Edition
   (Visuals, Motion, Feedback)
   ========================================================================== */

:root {
  --primary: #e60012; /* Co-op Red */
  --primary-light: #ffebee; /* Light Pink */
  --primary-bg: #fffafa; /* Very light pink/white */
  --accent-soft: #ffcdd2; /* Soft Pink */
  --border-accent: #e60012; /* Red Border */
  --text-brown: #333333; /* Standard Text */
  --highlight-row: #fff5f5; /* Light Red Row */
  --text-main: #333333;
  --text-muted: #666666;
  --bg-sub: #ffffff;
  --white: #ffffff;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Base --- */
#SMP_STYLE *,
#SMP_STYLE *::before,
#SMP_STYLE *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}

#SMP_STYLE ul,
#SMP_STYLE li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

#SMP_STYLE .body {
  margin: 0;
  padding: 0 0 80px;
  background-color: var(--bg-sub);
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(251, 160, 81, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(251, 160, 81, 0.05) 0%,
      transparent 20%
    );
  font-family: "LINE Seed JP", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Header Area --- */
#SMP_STYLE .top_bar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 100%;
}
/* --- Global Header --- */
.global-header {
  background-color: #fff;
  border-bottom: 2px solid #e60012; /* Changed to Main Red */
  padding: 15px 20px;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.global-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-enecoop {
  display: flex;
  align-items: center;
}

.logo-enecoop img {
  height: 40px; /* Reduced from 55px to match Contract Change form */
  width: auto;
  display: block;
}

/* Nav Menu (Hidden by default, used only in Overlay) */
.global-nav {
  display: none; /* Always hidden in the bar to use Hamburger */
}

/* Hamburger Button (Always Visible) */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s;
}

/* --- Character Header Style (New) --- */
.form_header.character_style {
  padding: 40px 20px 0;
  background-color: #fff;
  text-align: center;
}

/* Speech Bubble */
.header_bubble {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 2px solid #e60012; /* Red Border */
  border-radius: 50%; /* Oval */
  padding: 15px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ... (tail styles remain same, skipped for brevity in replace if possible, but safely included if contiguous) ... */
/* Retaining tail css in replace block for safety if needed, or targeting specific blocks */

/* Bubble Tail (Pure CSS) */
.header_bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0;
  border-style: solid;
  border-color: #e60012 transparent transparent transparent;
  display: block;
  width: 0;
}
.header_bubble::before { /* White filler over border */
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  display: block;
  width: 0;
  z-index: 1;
}

.bubble_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Slightly more gap */
}

.bubble_label {
  font-size: 15px; /* Larger */
  color: #666;
  font-weight: 700;
}

.bubble_icons {
  display: flex;
  align-items: center;
  gap: 50px; /* Much wider gap */
}

.b_icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.b_icon img {
  height: 55px; /* Further increased size */
  width: auto;
  opacity: 0.8;
}

.b_icon span {
  font-size: 12px; /* Readable size */
  color: #333;
  font-weight: 700;
}

.dot {
  color: #999;
  font-weight: bold;
}

/* Main Visual (Bear + Title) */
.header_main_visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.character_box img {
  width: 80px; /* Adjust size based on asset */
  height: auto;
}

.title_box h1 {
  font-size: 32px;
  color: #5d4037; /* Stylish Brown */
  line-height: 1.3;
  text-align: left;
  letter-spacing: 0.05em;
  font-weight: 400; /* As per image, looks regular/thin? */
  margin: 0;
}
/* Font tweak for title */
.title_box h1 {
  font-family: "LINE Seed JP", sans-serif; /* Use the connected font */
  font-weight: 400;
}

/* Mobile Optimizations for Header */
@media screen and (max-width: 600px) {
  .header_main_visual {
    flex-direction: row; /* Keep side-by-side */
    gap: 15px;
    align-items: center;
  }
  .title_box h1 {
    font-size: 20px; /* Adjust size to fit */
    text-align: left; /* Align left for side-by-side */
  }
  
  /* Shrink bubble on mobile to fit */
  .header_bubble {
    padding: 15px 20px; /* Reduced padding */
    width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box; /* Include padding in width */
    max-width: 340px; /* Max width for mobile */
  }
  .bubble_icons {
    gap: 15px; /* Reduced gap */
    flex-wrap: nowrap; /* Keep on one line if possible */
    justify-content: center;
  }
  .b_icon span {
    font-size: 10px;
  }
}

/* --- Procedure Options (Tiles) --- */
.procedure_options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.procedure_options li {
  width: calc(33.333% - 10px); /* 3 items per row on PC */
  margin: 0 !important; /* Override default */
  list-style: none;
}

/* Unhide default radio for simple list style */
.procedure_options input[type="radio"] {
  display: none; /* Hide default radio */
}


.procedure_options label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  height: 100%;
  padding: 5px;
}

.tile_inner {
  display: flex !important;
  flex-direction: column !important; /* Force Column */
  align-items: center !important;
  justify-content: center !important;
  background-color: #f0f0f0 !important;
  border: 2px solid #ff8a80 !important;
  border-radius: 12px;
  padding: 20px 10px;
  height: 240px !important; /* Force Height */
  width: 100%;
  transition: all 0.2s;
  box-sizing: border-box;
}

/* Checked State */
.procedure_options input[type="radio"]:checked + .tile_inner {
  background-color: #fff0f0;
  border-color: #e60012;
  box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.2);
}

.tile_inner img {
  height: 120px; /* 100px -> 120px */
  width: auto;
  margin: 0 0 10px 0; /* Adjusted margin */
  object-fit: contain;
}

.tile_inner span {
  font-weight: 700;
  color: #333; /* Dark Grey Text */
  font-size: 24px; /* 20px -> 24px */
  line-height: 1.4;
  display: block; /* Ensure it takes own line */
}
.tile_inner span.sub_text {
  font-size: 11px;
  font-weight: 400;
  display: block;
  color: #888;
}

/* Selected State - Text Color Change */
.procedure_options input[type="radio"]:checked + .tile_inner span {
  color: #e65100; /* Dark Orange/Brown */
}

/* Hover Effect - Subtle Opacity */
.procedure_options label:hover .tile_inner {
  opacity: 0.8;
}

/* Mobile Styling for Tiles */
@media screen and (max-width: 600px) {
  .procedure_options li {
    width: 100%; /* Stack on mobile for better visibility */
    margin-bottom: 10px !important;
  }
  .tile_inner {
    height: auto !important;
    padding: 20px;
  }
  .tile_inner img {
    height: 80px !important; /* Reasonable size on mobile */
    margin-bottom: 10px !important;
  }
  .tile_inner span {
    font-size: 20px !important;
  }
}

/* Mobile/PC Nav Overlay */
/* Mobile/PC Nav Overlay (Full Screen Modern Design) */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98); /* High opacity white */
  z-index: 1000; /* Behind hamburger (1001) */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px); /* Modern blur effect */
}

.mobile-nav-overlay.is_active {
  opacity: 1;
  visibility: visible;
}

/* Nav Logo inside menu */
.nav-logo {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease 0.1s;
}

.mobile-nav-overlay.is_active .nav-logo {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.mobile-nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 400px;
}

.mobile-nav-overlay li {
  margin-bottom: 0;
  border-bottom: none;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* Staggered animation for menu items */
.mobile-nav-overlay.is_active li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-nav-overlay.is_active li:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.mobile-nav-overlay.is_active li:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-nav-overlay.is_active li:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }

.mobile-nav-overlay a {
  text-decoration: none;
  color: #333;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 800;
  font-size: 18px; /* Larger text */
  display: block;
  padding: 20px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  border-radius: 8px;
}

.mobile-nav-overlay a:hover {
  color: #5d4037; /* Brown */
  background-color: #FFF9C4; /* Soft Yellow Highlight */
  transform: scale(1.02);
}

.mobile-nav-overlay a:active {
  background-color: #FBC02D;
  color: #fff;
  transform: scale(0.98);
}

/* --- Form Header Adjustments (Center Style) --- */
/* --- Form Header Adjustments (Optimized Grid Layout) --- */
#SMP_STYLE .form_header {
  padding: 50px 20px 10px; /* Reduced bottom padding 30px -> 10px */
  background: none;
}

#SMP_STYLE .header_row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

#SMP_STYLE .icon_left {
  justify-self: end;
  display: flex;
  align-items: center;
}

#SMP_STYLE .icon_left img {
  width: 85px;
  height: auto;
  display: block;
}

#SMP_STYLE .title_area {
  justify-self: center;
  text-align: center;
}

.title-with-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.title-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#SMP_STYLE .main_title {
  font-size: 32px;
  line-height: 1.35;
  margin: 5px 0 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #333;
}

#SMP_STYLE .icon_right {
  justify-self: start;
  display: flex;
  gap: 15px;
  align-items: center;
}

#SMP_STYLE .icon_right img {
  width: 48px;
  height: auto;
  display: block;
}

#SMP_STYLE .icon_left,
#SMP_STYLE .icon_right {
  display: flex;
}

#SMP_STYLE .top_bar {
  height: 4px;
  background: var(--primary-gradient);
  display: block;
}

/* --- Hamburger Button --- */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: #5d4037; /* Dark Brown for visibility */
  border-radius: 3px;
  transition: all 0.3s;
}

/* Hamburger active state */
.hamburger-btn.is_active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.hamburger-btn.is_active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is_active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

@media screen and (max-width: 900px) {
  #SMP_STYLE .header_row {
    gap: 15px;
  }
  #SMP_STYLE .icon_left img {
    width: 65px;
  }
  #SMP_STYLE .icon_right img {
    width: 38px;
  }
  #SMP_STYLE .main_title {
    font-size: 26px;
  }
}

@media screen and (max-width: 600px) {
  #SMP_STYLE .form_header {
    padding: 40px 10px 20px;
  }
  #SMP_STYLE .header_row {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
  #SMP_STYLE .icon_left img {
    width: 50px;
  }
  #SMP_STYLE .icon_right img {
    width: 30px;
  }
  #SMP_STYLE .icon_right {
    gap: 8px;
  }
  #SMP_STYLE .main_title {
    font-size: 20px;
  }
  #SMP_STYLE .badge {
    font-size: 10px;
    padding: 2px 8px;
  }
}

/* Badge (Speech Bubble) */
#SMP_STYLE .badge {
  display: inline-block;
  padding: 8px 24px;
  background-color: var(--white);
  border: 2px solid #f5a623; /* Orange border */
  border-radius: 50px;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px; /* Space above title */
  position: relative;
  box-shadow: none;
}

/* Arrow (Border Trick) */
#SMP_STYLE .badge::after {
  content: "";
  position: absolute;
  bottom: -8px; /* Stick out bottom */
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #f5a623; /* Match border color */
}
/* White Mask for Outline Effect */
#SMP_STYLE .badge::before {
  content: "";
  position: absolute;
  bottom: -5px; /* Slightly higher than outer arrow */
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff; /* Match bg color */
  z-index: 1;
}

#SMP_STYLE .main_title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
}

/* --- Caution Box (Legend Style) --- */
#SMP_STYLE .caution_box {
  margin: 40px auto 20px; /* Reduced bottom margin 40px -> 20px */
  max-width: 600px;
  border: 2px solid #e60012;
  border-radius: 20px;
  padding: 30px;
  background-color: #fff;
  position: relative;
  text-align: center; /* Center the box/title, but maybe list text needs reset? */
}

#SMP_STYLE .caution_box ul {
  text-align: left; /* Force left alignment for list items */
  display: inline-block; /* Or block, depending on centering desire of the list block itself */
  width: 100%;
}

#SMP_STYLE .caution_title {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #e60012; /* Red Text */
  font-weight: 700;
  font-size: 18px;
  padding: 0 20px;
  border-radius: 0;
  display: inline-block;
  line-height: 1;
}

#SMP_STYLE .caution_box li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.7;
  padding-left: 1.5em; /* ぶら下げインデント */
  position: relative;
}

#SMP_STYLE .caution_box li::before {
  content: "○"; /* White Circle */
  color: #333; /* Standard Text Color */
  font-size: 14px;
  font-size: 10px;
  position: absolute;
  left: 0;
  top: 4px;
}

#SMP_STYLE .caution_box a {
  color: #e65100; /* Darker orange for readability */
  text-decoration: underline;
  font-weight: 700;
}

/* --- Step Indicator (Red/Pink Style) --- */
#SMP_STYLE .step_indicator {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px auto 40px;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Dotted Line Background */
#SMP_STYLE .step_indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 2px;
  border-top: 2px dotted #ff8a80; /* Pinkish Red Dotted Line */
  z-index: -1;
}

#SMP_STYLE .step {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: #ef9a9a; /* Inactive Pink */
  position: relative;
  border: 2px solid #fff; /* White ring to separate from line */
}

/* Active / Current Step */
#SMP_STYLE .step.is_active {
  background-color: #e57373; /* Active Pink */
}

/* Done / Final Step */
#SMP_STYLE .step.is_done {
  background-color: #e60012; /* Deep Red */
}

#SMP_STYLE .step::after {
  content: none;
}

/* --- Guidance & Error Messages --- */
#SMP_STYLE .header_rmesg {
  display: inline-block;
  text-align: left;
  font-size: 14px;
  color: #555;
  background-color: #f0f2f5;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px; /* Removed extra left padding (52px -> 20px) */
  margin: 10px auto 40px; /* Increased bottom margin */
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: 0.3s;
}

/* Removed ::before icon style */
#SMP_STYLE .header_rmesg::before {
  content: none;
}

#SMP_STYLE .header_emesg {
  display: none; /* Hidden by default, shown by JS */
  margin: 20px auto 30px;
  max-width: 650px;
  width: 90%;
  background-color: #fff5f5;
  border: 2px solid #ff4d4d;
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  color: #d32f2f;
  animation: fadeInUp 0.8s backwards;
}

#SMP_STYLE .header_emesg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Form Container --- */
#SMP_STYLE form {
  background-color: transparent; /* Changed from white */
  max-width: 700px;
  margin: 0 auto 40px; /* Removed top margin */
  border-radius: 0;
  padding: 0; /* Changed from 20px */
  box-shadow: none; /* Removed shadow */
}

#SMP_STYLE #tsumitate-form-wrapper {
  margin-top: 60px; /* Increased top margin for separation */
}

#SMP_STYLE .smp_tmpl {
  padding: 10px 20px 0; /* Reduced top padding from 30px to 10px */
  text-align: left;
}

/* --- Section Title (Banner Style) --- */
#SMP_STYLE .section_title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  /* Red Bar Style */
  background-color: #e60012;
  color: #fff;
  padding: 10px 20px;
  margin: 0 0 30px;
  border-left: 10px solid #b71c1c; /* Darker red accent */
  border-top: none;
  font-size: 20px;
}

#SMP_STYLE .section_title:nth-of-type(n) {
  animation: none;
}

/* --- Required Badge (Ideal Reference Style) --- */
#SMP_STYLE .badge-required {
  display: inline-block;
  background: none;
  border: none;
  color: #e03131; /* Deep Red */
  font-size: 13px; /* Slightly larger */
  font-weight: 700;
  padding: 0;
  margin-left: 8px;
  vertical-align: 0;
}

#SMP_STYLE .badge-required::before {
  content: "\203B"; /* Unicode for Reference Mark */
  margin-right: 1px;
}

/* --- Static Luxury Layout (The Ultimate Reset) --- */
#SMP_STYLE dl {
  position: relative;
  margin-bottom: 24px;
  padding: 0 0 30px; /* Spacing handled via margin/padding mix for rhythm */
  border-bottom: 1px solid #eaeaea; /* Subtle separator instead of boxes */
  background-color: transparent;
  transition: none;
  animation: none; /* No entrance animation */
}

#SMP_STYLE dl:focus-within {
  background-color: transparent;
  border-color: #eaeaea;
  box-shadow: none;
  transform: none;
}

/* Label (The Pillar) */
#SMP_STYLE dt.title {
  position: static;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #333; /* High contrast dark gray */
  letter-spacing: 0.05em;
  transform: none;
  pointer-events: auto;
}

#SMP_STYLE dl:focus-within dt.title {
  color: var(--text-brown); /* active focus color */
  transform: none;
}

/* Required Badge (Minimal & Sharp) */
#SMP_STYLE .badge-required {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  box-shadow: none;
  transform: none;
  animation: none; /* Stop the pulse */
}

#SMP_STYLE .badge-required::before {
  display: none;
}

/* Content Wrapper */
#SMP_STYLE dd.data {
  margin: 0; /* Override UA default */
  padding: 0 0 0 16px; /* Indent slightly for hierarchy on PC */
  min-height: auto;
  display: block;
}

/* Inputs (Solid & Tactile) */
#SMP_STYLE .input,
#SMP_STYLE textarea,
#SMP_STYLE select {
  display: block;
  width: 100%;
  background-color: #fff !important;
  border: 1px solid #ccc !important; /* Proper solid border */
  border-radius: 6px; /* Tighter radius for professional look */
  padding: 14px 16px;
  margin: 0;
  font-size: 16px;
  color: #111;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); /* Extremely subtle depth */
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Focus: Pure state change, no movement */
#SMP_STYLE .input:focus,
#SMP_STYLE textarea:focus,
#SMP_STYLE select:focus {
  background-color: #fff !important;
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 160, 81, 0.15) !important;
  transform: none;
}

/* --- Submit Button (Static Luxury - Boxy) --- */
#SMP_STYLE input.submit {
  display: block;
  width: 100%;
  max-width: 320px; /* Match the new standard input width */
  height: 56px; /* Slightly more compact height */
  margin: 20px auto 40px; /* Reduced top/bottom margin */
  border: none;
  border-radius: 8px; /* Boxy Match */
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--text-brown);
  font-size: 18px;
  font-weight: 800; /* ExtraBold for Action */
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Grounded shadow */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#SMP_STYLE input.submit:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
  transform: none;
}

#SMP_STYLE input.submit:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: none;
}

/* PC Width Constraints & Specific Field Tuning */
@media screen and (min-width: 601px) {
  /* Default tight width */
  #SMP_STYLE .input {
    max-width: 320px;
  }
  #SMP_STYLE select {
    max-width: 320px;
  }

  /* Full width allowed for specific textareas/large fields */
  #SMP_STYLE input[name*="mail"],
  #SMP_STYLE input[name*="address"],
  #SMP_STYLE textarea {
    max-width: 100%;
  }

  /* Specific Field Optimizations */
  /* Member Number: Tight (150px) */
  #SMP_STYLE input[name="f014066299"] {
    max-width: 150px;
  }

  /* Member Name: Medium (220px) */
  #SMP_STYLE input[name="f014066300"] {
    max-width: 220px;
  }
}

/* --- Radio Tiles Master (Toggle Button Style) --- */
/* Matches the "Green Button" look in reference, but with Orange */
#SMP_STYLE .multi2 ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start; /* Aligned left as requested */
  gap: 20px; /* Open up spacing */
  list-style: none !important;
  padding: 0;
  margin: 0;
}

#SMP_STYLE .multi2 li {
  flex: 0 1 auto; /* Don't grow indefinitely */
  width: auto;
  min-width: 120px; /* Minimum width for touch */
  max-width: 240px; /* Max width to prevent looking too wide */
  margin: 0;
}

#SMP_STYLE .multi2 label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100px; /* Base width */
  padding: 16px 12px; /* Taller touch target */

  /* Unchecked State: Warm Tint BG, ExtraBold Theme Text */
  background-color: #fffbf5; /* Very subtle warm white */
  border: 2px solid var(--border-accent); /* Thicker & darker border */
  border-radius: 6px;

  color: var(--text-main); /* Changed from var(--primary) for visibility */
  font-weight: 800; /* ExtraBold for Readability */
  font-size: 17px;
  letter-spacing: 0.05em; /* Open up spacing slightly */
  text-shadow: none;

  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s;
  position: relative;
}

/* Hover: Slight fill */
#SMP_STYLE .multi2 label:hover {
  background-color: #fff9f0;
  border-color: var(--primary); /* Highlight with main color on hover */
  color: var(--text-main); /* Keep text dark on hover too */
}

/* Selected State: Soft Pink Fill with Red Text/Border */
#SMP_STYLE .multi2 label:has(input:checked) {
  background-color: #ffebee; /* Light Pink */
  border-color: #e60012; /* Red Border */
  color: #e60012; /* Red Text */
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.15);
}

/* Custom Circle Indicator (Removed) */
#SMP_STYLE .multi2 label:has(input:checked)::before {
  content: none;
}

/* Hide native input */
#SMP_STYLE .multi2 label input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  transform: none;
  box-shadow: none;
}

/* (Removed conflicting 2px border rule that caused jumping) */
#SMP_STYLE .multi2 label:has(input:checked)::after {
  content: none;
} /* No checkmark */

/* --- Badge Pulse Animation --- */
@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

#SMP_STYLE .badge-required {
  animation: badgePulse 2s infinite;
}

/* --- Zip / Phone / Time --- */
#SMP_STYLE .zipcode ul,
#SMP_STYLE .phone ul,
#SMP_STYLE .time ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

#SMP_STYLE .zipcode li,
#SMP_STYLE .phone li,
#SMP_STYLE .time li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

#SMP_STYLE .zipcode input,
#SMP_STYLE .phone input {
  text-align: center;
  width: 100px; /* Fixed logical width for number segments */
  padding: 12px 10px; /* Slightly reduced padding */
}

/* --- Date Icon --- */
#SMP_STYLE .is_date {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FB8C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 48px !important;
  background-size: 20px;
}

/* --- Error Highlight (New Validation Feedback) --- */
#SMP_STYLE dd.data.error-highlight {
  background-color: #fff5f5;
  border-radius: 8px;
  padding: 15px 15px 15px 20px;
  border: 1px dashed #ff4d4d;
  transition: all 0.3s;
}

#SMP_STYLE dd.data.error-highlight .input {
  border-color: #ff4d4d !important;
  background-color: #fff !important;
}

#SMP_STYLE .js-error-msg,
#SMP_STYLE .msg {
  color: #ff4d4d !important;
  margin-top: 8px !important;
  display: block !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 600px) {
  #SMP_STYLE .smp_tmpl {
    padding: 25px 15px;
  }
  #SMP_STYLE dl {
    padding: 20px 15px;
    margin-bottom: 15px;
  }
  #SMP_STYLE .section_title {
    margin: 30px 0 20px;
    font-size: 18px;
  }
  #SMP_STYLE .multi2 label {
    flex: 1 1 100%;
  }
  #SMP_STYLE .step_indicator {
    gap: 25px;
  }
  #SMP_STYLE .step_indicator::before {
    width: 140px;
  }

  /* Mobile padding tweaks */
  #SMP_STYLE .input,
  #SMP_STYLE textarea,
  #SMP_STYLE select {
    padding: 14px 16px;
    font-size: 16px;
  }

  /* Remove indentation on mobile */
  #SMP_STYLE dd.data {
    padding: 0;
  }

  /* Mobile: Split Field Optimization */
  #SMP_STYLE .zipcode ul,
  #SMP_STYLE .phone ul,
  #SMP_STYLE .time ul {
    gap: 4px; /* Tighter gap */
    width: 100%; /* Ensure container uses full width */
  }
  #SMP_STYLE .zipcode li,
  #SMP_STYLE .phone li,
  #SMP_STYLE .time li {
    flex: 1 1 0px; /* FORCE shrink/grow equally */
    gap: 2px;
    width: auto;
  }
  #SMP_STYLE .zipcode input,
  #SMP_STYLE .phone input {
    width: 100%; /* Fill the flexible li */
    flex: 1;
    padding: 12px 2px; /* Minimal padding */
    min-width: 0; /* Prevent overflow */
    box-sizing: border-box;
  }

  /* Error Highlight adjustment for Mobile */
  #SMP_STYLE dd.data.error-highlight {
    padding: 15px;
  }

  /* Header Mobile Optimization */
  #SMP_STYLE .header_row {
    flex-direction: row; /* Keep horizontal */
    align-items: center; /* Center vertically */
    justify-content: center;
    gap: 5px; /* Tight gap */
  }
  #SMP_STYLE .title_area {
    flex: 1; /* Allow title to take spacing */
    min-width: 0; /* Allow shrinking */
  }
  #SMP_STYLE .icon_left img {
    width: 50px;
  }
  #SMP_STYLE .main_title {
    font-size: 29px;
    line-height: 1.3;
    margin: 0;
  }
  #SMP_STYLE .badge {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 5px;
    border: 1px solid #f5a623;
  }
  #SMP_STYLE .badge::after {
    bottom: -6px;
    border-width: 6px;
  } /* Smaller arrow */
  #SMP_STYLE .badge::before {
    bottom: -4px;
    border-width: 5px;
  }

  #SMP_STYLE .icon_right {
    gap: 5px;
  }
  #SMP_STYLE .icon_right img {
    width: 30px;
  }
}

/* Specific Fix: Privacy Policy Button Size */
#SMP_STYLE .multi2 label:has(input[name="f014114161"]) {
  flex: 0 0 auto !important; /* Stop growing */
  max-width: 200px; /* Limit width */
  margin: 0;
}

/* --- Form Grouping (Custom Request) --- */
/* Groups "Member Number" through "Consent" */
#SMP_STYLE .form-group-custom {
  background-color: var(--white);
  max-width: 700px;
  margin: 0 auto 40px; /* Top margin removed to connect with header */
  border-radius: 0 0 20px 20px; /* Only bottom corners rounded */
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: none;
}
/* Adjust spacing inside the group */
#SMP_STYLE .form-group-custom .section_title {
  margin-top: 0;
}
#SMP_STYLE .form-group-custom dl:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Ensure Section Title aligns with the group */
#SMP_STYLE .section_title {
  max-width: 700px;
  margin: 40px auto 0; /* Bottom margin 0 to connect */
  border-radius: 8px 8px 0 0; /* Optional: Rounded top corners */
}

/* --- Visual Tank Selection (2x2 Grid) --- */
#SMP_STYLE .visual-grid ul {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px; /* Reduced gap for mobile */
}

#SMP_STYLE .visual-grid li {
  width: 100%;
}

#SMP_STYLE .visual-grid label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Text at bottom */
  height: 160px; /* Increased height for long text */
  padding: 10px;
  background-color: #eee; /* Default bg */
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 13px; /* Slightly smaller text */
  line-height: 1.3;
  color: #333;
  transition: all 0.2s;
  background-repeat: no-repeat;
  line-height: 1.3;
  color: #333;
  transition: all 0.2s;
  background-repeat: no-repeat;
  background-position: center 20px; /* Moved icon up */
  background-size: 80px auto; /* Increased size significantly */
}

/* Background Images per Value */
/* Value 1: Full (tank490.png) */
#SMP_STYLE .visual-grid label:has(input[value="1"]) {
  background-image: url("https://enecoop.sapporo.coop/lp/spiral_file/spiral_img/tank490.png");
}
/* Value 2: Qty (tank490.png) */
#SMP_STYLE .visual-grid label:has(input[value="2"]) {
  background-image: url("https://enecoop.sapporo.coop/lp/spiral_file/spiral_img/tank490.png");
}
/* Value 3: Poly (can300.png) */
#SMP_STYLE .visual-grid label:has(input[value="3"]) {
  background-image: url("https://enecoop.sapporo.coop/lp/spiral_file/spiral_img/can300.png");
}
/* Value 4: 90L (tank90.png) */
#SMP_STYLE .visual-grid label:has(input[value="4"]) {
  background-image: url("https://enecoop.sapporo.coop/lp/spiral_file/spiral_img/tank90.png");
}

/* Selected State */
#SMP_STYLE .visual-grid label:has(input:checked) {
  background-color: #fff5e0;
  border-color: var(--primary);
  color: var(--text-brown); /* Stylish Brown */
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Neutral shadow */
}

#SMP_STYLE .visual-grid label:hover {
  background-color: #fff;
  border-color: var(--primary-light);
}

/* Tank Badges for Differentiation */
#SMP_STYLE .badge-tank {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 5px; /* Changed from margin-top */
  font-size: 13px;
}
#SMP_STYLE .badge-full {
  background-color: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}
#SMP_STYLE .badge-qty {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

/* --- Initial Qualification Modal --- */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Cover full screen securely */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2147483647; /* Max Z-Index safely */
  display: flex; /* Removed !important to allow JS toggling */
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: auto; /* Fallback centering */
}

.modal-title {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.modal-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

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

.modal-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s;
  line-height: 1.4;
}

.modal-btn span.sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
}

.modal-btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(251, 160, 81, 0.3);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: #fff5e0; /* Light orange tint on hover */
}

.modal-link-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(251, 160, 81, 0.3);
  transition: opacity 0.3s;
}

.modal-link-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Flatpickr Custom Styles for Spiral Form
   ========================================================================== */

/* --- Container Adjustment (Mobile Fix) --- */
.flatpickr-calendar.inline {
  width: 100% !important;
  max-width: 320px; /* Standard constraint for desktop/tablet */
  margin: 20px auto !important; /* Center the calendar ALWAYS */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; /* Gentle shadow */
  border: 1px solid #eaeaea !important;
  border-radius: 12px !important;
}

/* Fix mobile month navigation overlap and ensure year is visible */
.flatpickr-month {
  height: 40px !important;
  position: relative !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  height: 40px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
}

.flatpickr-current-month {
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 40px !important;
  width: 70% !important; /* Reduced width to avoid overlap with arrows */
  left: 15% !important; /* Centered with room for arrows */
  position: absolute !important;
  top: 0 !important;
}

/* Month Dropdown and Year Input spacing */
.flatpickr-current-month .flatpickr-monthDropdown-months {
  width: auto !important;
  margin-right: 5px !important;
}
.flatpickr-current-month .numInputWrapper {
  width: 75px !important;
}

/* Ensure year is visible and positioned correctly */
.flatpickr-current-month input.cur-year {
  font-weight: 700 !important;
  color: #333 !important;
  font-size: 18px !important;
}

/* --- Color Coding (Sat/Sun/Holidays) --- */
/* Weekday Headers */
.flatpickr-weekday:nth-child(1) {
  color: #e03131 !important;
  font-weight: 700 !important;
}
.flatpickr-weekday:nth-child(7) {
  color: #1565c0 !important;
  font-weight: 700 !important;
}

/* Day Cells - Holidays only as per request */
.flatpickr-day.is-holiday {
  color: #e03131 !important;
}

/* Disabled Days (Gray) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #ccc !important;
  opacity: 0.5;
}

/* Selected Day -> Primary Theme Color (Orange) */
.flatpickr-day.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--text-main) !important; /* Force dark text */
}

/* --- Mobile Size Opt --- */
@media screen and (max-width: 480px) {
  .flatpickr-calendar.inline {
    max-width: 100% !important; /* Take full width on mobile */
  }
  .flatpickr-days {
    width: 100% !important;
  }
  .dayContainer {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  /* Increase tap size */
  .flatpickr-day {
    height: 48px !important;
    line-height: 48px !important;
    max-width: none !important; /* Let it expand */
    font-size: 18px !important; /* Increase font for mobile */
  }
  .flatpickr-weekday {
    font-size: 14px !important;
  }
}

#SMP_STYLE dl:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* --- Confirmation Page Specific --- */
#SMP_STYLE .data_value {
  padding: 12px 16px;
  background-color: #f8fafc;
  border-radius: 6px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  word-break: break-all;
  border: 1px solid #edf2f7;
}

#SMP_STYLE .confirm_actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-bottom: 40px;
}

#SMP_STYLE .submit_primary {
  width: 100%;
  max-width: 400px;
}

#SMP_STYLE .btn_back {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

#SMP_STYLE .btn_back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}




/* ==========================================================================
   FINAL OVERRIDES for Procedure & Service Options
   (Restored Tile Design with Robust Grid)
   ========================================================================== */

/* --- 1. Grid Container Setup --- */
#SMP_STYLE .procedure_options,
#SMP_STYLE .service_options {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* Fixed 3 columns */
  gap: 15px !important;
  padding: 0 !important;
  margin: 15px 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

#SMP_STYLE .procedure_options li,
#SMP_STYLE .service_options li {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: none !important;
  border: none !important;
}

/* --- 2. Label Reset --- */
#SMP_STYLE .procedure_options label,
#SMP_STYLE .service_options label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important; /* Full height for clickable area */
  cursor: pointer;
  display: flex !important;
  position: relative;
}

/* Hide Inputs visually */
#SMP_STYLE .procedure_options input[type="radio"],
#SMP_STYLE .service_options input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
  margin: 0 !important;
}

/* --- 3. Tile Common Styles (The "Frame") --- */
#SMP_STYLE .procedure_options .tile_inner,
#SMP_STYLE .service_options .service_tile {
  width: 100% !important;
  height: 100% !important;
  background-color: #F8F9FA !important; /* Unselected Gray */
  border: 2px solid #EEE !important;     /* Unselected Border */
  border-radius: 12px !important;
  padding: 15px 10px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  z-index: 1;
}

/* Hover Effect */
#SMP_STYLE .procedure_options label:hover .tile_inner,
#SMP_STYLE .service_options label:hover .service_tile {
  border-color: #FBC02D !important;
  background-color: #fffde7 !important;
}

/* Selected State (Yellow + Strong Border) */
#SMP_STYLE .procedure_options input:checked + .tile_inner,
#SMP_STYLE .service_options input:checked + .service_tile {
  background-color: #FFF9C4 !important;
  border-color: #FBC02D !important;
  box-shadow: 0 4px 10px rgba(251, 192, 45, 0.2) !important;
}

/* --- 4. Content Layouts --- */



/* Service Tiles (Vertical: Icon ^ Text) */
#SMP_STYLE .service_options .service_tile {
  flex-direction: column !important;
  padding: 20px 10px !important; /* More padding for vertical */
}

#SMP_STYLE .service_options img {
  height: 50px !important;
  width: auto !important;
  margin: 0 auto 10px !important;
  display: block !important;
}

#SMP_STYLE .service_options span {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #555 !important;
  text-align: center;
}

/* Selected Text Color */
#SMP_STYLE .procedure_options input:checked + .tile_inner span,
#SMP_STYLE .service_options input:checked + .service_tile span {
  color: #5d4037 !important; /* Brown styling */
}

/* --- Mobile Adjustments --- */
@media screen and (max-width: 600px) {
  /* Procedure: 2 columns on mobile */
  #SMP_STYLE .procedure_options {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Service: 3 columns on mobile (keep as requested) */
  #SMP_STYLE .service_options {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  #SMP_STYLE .procedure_options .tile_inner {
    flex-direction: column !important; /* Stack vertical on tight mobile? Or keep row? */
    /* Let's keep row if space permits, but usually column is safer for tiles on mobile */
    flex-direction: column !important; 
    text-align: center;
    padding: 10px 5px !important;
  }
  
  #SMP_STYLE .procedure_options img {
    margin: 0 0 5px 0 !important;
  }
  
  #SMP_STYLE .procedure_options span {
    text-align: center;
    font-size: 12px !important;
  }

  /* Service Mobile */
  #SMP_STYLE .service_options .service_tile {
    padding: 10px 5px !important;
  }
  #SMP_STYLE .service_options img { margin-bottom: 5px !important; height: 35px !important; }
  #SMP_STYLE .service_options span { font-size: 10px !important; }
}

/* --- Description Text in Labels --- */
#SMP_STYLE dt.title {
  flex-wrap: wrap; /* Allow wrapping */
}

#SMP_STYLE .title-desc {
  width: 100%; /* Force new line */
  font-size: 13px;
  color: #666;
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.5;
}

/* --- Date Warning Text --- */
#SMP_STYLE .note-warning {
  font-size: 13px;
  color: #c0392b; /* Strong red */
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.5;
  display: block;
}

/* --- Input Guide (Image & Text) --- */
.input-guide {
  margin-top: 12px;
}
.input-guide p {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}
.input-guide img {
  max-width: 100%;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  display: block;
}


/* --- Visual Tank Selector (Genius Design) --- */
.tank-selector-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.tank-map {
  display: grid;
  grid-template-columns: 100px 100px 100px;
  grid-template-rows: 80px 100px 80px;
  gap: 15px;
  position: relative;
  /* Centered House Icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px 64px;
}

.pos-btn {
  position: relative; /* Reset absolute */
  top: auto; left: auto; right: auto; bottom: auto;
  transform: none !important;
  
  width: 100%;
  height: 100%;
  
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  font-size: 14px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}

/* Pseudo-elements for Arrow Indicators */
.pos-btn::after {
  content: "";
  display: block;
  width: 0; 
  height: 0; 
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  margin-top: 6px;
  opacity: 0.3;
}

/* Specific Positions in Grid */
.pos-btn.pos-back { grid-column: 2 / 3; grid-row: 1 / 2; }
.pos-btn.pos-front { grid-column: 2 / 3; grid-row: 3 / 4; }
.pos-btn.pos-left { grid-column: 1 / 2; grid-row: 2 / 3; }
.pos-btn.pos-right { grid-column: 3 / 4; grid-row: 2 / 3; }

/* Arrows */
.pos-btn.pos-back::after { border-bottom: 8px solid #333; border-top: 0; margin-top: 0; margin-bottom: 4px; }
.pos-btn.pos-front::after { border-top: 8px solid #333; border-bottom: 0; }
.pos-btn.pos-left::after { border-right: 8px solid #333; border-left: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin: 0 4px 0 0; order: -1; }
.pos-btn.pos-right::after { border-left: 8px solid #333; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin: 0 0 0 4px; }
.pos-btn.pos-left, .pos-btn.pos-right { flex-direction: row; }


/* Hover State */
.pos-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  color: #333;
}

/* Active Selected State */
.pos-btn.active {
  background-color: #FBC02D;
  color: #fff;
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.4);
  transform: scale(1.05) !important;
}

.pos-btn.active::after {
  border-left-color: #fff;
  border-right-color: #fff;
  border-top-color: #fff;
  border-bottom-color: #fff;
  opacity: 1;
}

/* Hide the circle indicator from previous design */
.pos-btn::before { display: none; }

/* --- Thank You Page Styles --- */
.thanks_container {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  margin: 20px auto; /* Centered */
  max-width: 600px;
}

.thanks_icon {
  width: 80px;
  height: 80px;
  background: #fff9c4; /* Light yellow background for theme */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.thanks_icon img {
  width: 40px;
  height: auto;
}

.thanks_title {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
}

.thanks_text {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 40px;
}

.thanks_actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn_thanks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 200px;
  box-sizing: border-box;
}

.btn_home {
  background-color: #303030; /* Match form footer button */
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn_home:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn_inquiry {
  background-color: #fff;
  border: 2px solid #eee;
  color: #666;
}

.btn_inquiry:hover {
  background-color: #f9f9f9;
  border-color: #ddd;
}
