/* =============================================
   EditPhonePage.css
   ============================================= */

/* --- Wrapper utama --- */
.ep-bg {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.ep-wrapper {
  max-width: 576px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
}

@media (min-width: 768px) {
  .ep-wrapper {
    max-width: 500px;
    margin: 3rem auto;
    min-height: auto;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
  }
}

/* --- Mobile header --- */
.ep-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: white;
  border-bottom: 1px solid #eee;
}

/* --- Info box --- */
.ep-info-box {
  background-color: #f0f7ff;
  border: 1px solid #d0e7ff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ep-info-box i {
  color: #007bff;
  font-size: 1.2rem;
  margin-top: 2px;
}

.ep-info-box p {
  font-size: 0.85rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

/* --- Form label --- */
.ep-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: block;
  letter-spacing: 0.5px;
}

/* --- Phone input group --- */
.ep-phone-group {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 2px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.ep-phone-group.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ep-phone-group:focus-within {
  border-color: #ff5200;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 82, 0, 0.08);
}

.ep-phone-prefix {
  padding: 0.9rem 1.2rem;
  background: #eee;
  font-weight: 700;
  color: #555;
  border-right: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.ep-phone-group input {
  border: none;
  background: transparent;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  width: 100%;
  outline: none;
  box-shadow: none !important;
}

/* --- Password input --- */
.ep-input {
  border-radius: 14px !important;
  padding: 0.9rem 1.2rem !important;
  border: 2px solid #f0f0f0 !important;
  font-size: 1rem;
  background-color: #f5f5f5 !important;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.ep-input:focus {
  border-color: #ff5200 !important;
  background-color: white !important;
  box-shadow: 0 0 0 4px rgba(255, 82, 0, 0.08) !important;
  outline: none;
}

/* --- Tombol simpan --- */
.ep-btn-save {
  background-color: #ff5200;
  color: white;
  border: none;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  width: 100%;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
}

.ep-btn-save:hover:not(:disabled) {
  background-color: #e64a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 82, 0, 0.25);
}

.ep-btn-save:disabled {
  background-color: #ddd;
  cursor: not-allowed;
  color: #aaa;
}

/* --- Fixed bottom action (mobile) --- */
.ep-fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1.2rem;
  border-top: 1px solid #eee;
  z-index: 100;
}

@media (min-width: 768px) {
  .ep-fixed-bottom {
    position: static;
    padding: 0;
    margin-top: 2rem;
    border: none;
    background: transparent;
  }
}

/* --- Form section padding --- */
.ep-form-section {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .ep-form-section {
    padding: 0;
  }
}

/* --- Modal --- */
.ep-modal-content {
  border-radius: 24px !important;
  border: none !important;
}

.ep-wa-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
