:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --error: #ef4444;
  --radius: 16px;
  --shadow: 0 10px 40px -10px rgba(15, 118, 110, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

/* Abstract Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
  width: 400px; height: 400px;
  background: #ccfbf1;
  top: -100px; left: -100px;
}

.shape-2 {
  width: 500px; height: 500px;
  background: #e0f2fe;
  bottom: -150px; right: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px; height: 300px;
  background: #fdf4ff;
  top: 30%; left: 40%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Container */
.app-container {
  width: 100%;
  max-width: 680px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  width: 100px;
  height: 6px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

.step-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Form Wrapper */
.form-wrapper {
  padding: 2.5rem;
  position: relative;
  min-height: 400px;
}

/* Step Panels */
.step-panel {
  display: none;
  animation: slideIn 0.4s ease forwards;
}

.step-panel.active {
  display: block;
}

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

.panel-header {
  margin-bottom: 2rem;
  text-align: center;
}

.panel-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.panel-header p {
  color: var(--text-muted);
}

.text-accent {
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-buy {
  background: #eff6ff;
  color: #3b82f6;
}

/* Cards Selection (Rent/Buy) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.choice-card {
  cursor: pointer;
  position: relative;
}

.choice-card input {
  display: none;
}

.card-inner {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.choice-card:hover .card-inner {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.choice-card input:checked + .card-inner {
  border-color: var(--primary);
  background: #f0fdfa;
}

.icon-circle {
  width: 64px;
  height: 64px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.choice-card input:checked + .card-inner .icon-circle {
  background: var(--primary);
  color: white;
}

.card-inner h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.req {
  color: var(--error);
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="email"],
.input-group input[type="number"],
.input-group input[type="date"],
.input-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  transition: var(--transition);
  color: var(--text-main);
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Custom Radio Pills */
.radio-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-pills label {
  flex: 1;
  min-width: 120px;
  cursor: pointer;
}

.radio-pills input {
  display: none;
}

.radio-pills span {
  display: block;
  text-align: center;
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.radio-pills input:checked + span {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* File Upload */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.file-drop-area:hover {
  border-color: var(--primary-light);
  background: #f0fdfa;
}

.file-drop-area i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.file-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.payment-methods label {
  cursor: pointer;
}

.payment-methods input {
  display: none;
}

.pay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.5rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  gap: 0.5rem;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.pay-box i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.payment-methods input:checked + .pay-box {
  border-color: var(--primary);
  background: #f0fdfa;
  color: var(--primary);
}

.payment-methods input:checked + .pay-box i {
  color: var(--primary);
}

/* Notice Box */
.notice-box {
  display: flex;
  gap: 1rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.notice-box i {
  font-size: 1.2rem;
}

/* Buttons */
.panel-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.panel-footer.dual {
  justify-content: space-between;
}

.btn {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-submit {
  background: #10b981;
  color: white;
}

.btn-submit:hover:not(:disabled) {
  background: #059669;
}

.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 1.2rem; height: 1.2rem;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Success Screen */
.success-wrap {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  width: 80px; height: 80px;
  background: #10b981;
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.success-wrap h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-wrap p {
  color: var(--text-muted);
  line-height: 1.5;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 600px) {
  .form-grid, .cards-grid {
    grid-template-columns: 1fr;
  }
  .app-container {
    padding: 0;
  }
  .form-wrapper {
    padding: 1.5rem;
  }
}
