/**
 * Host Divine - Hosting Order Modal Popup Styles
 */

/* Modal Container */
.hom-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hom-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.hom-modal-open {
  overflow: hidden !important;
}

/* Backdrop */
.hom-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* Dialog Box */
.hom-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 2.25rem;
}

.hom-modal.is-open .hom-dialog {
  transform: translateY(0) scale(1);
}

/* Close button */
.hom-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.hom-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Header */
.hom-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hom-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.4);
}

.hom-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.hom-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.hom-title span {
  color: #2563eb;
}

.hom-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Selected Plan Banner */
.hom-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.hom-plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  background: #dbeafe;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.hom-plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.hom-plan-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

.hom-plan-pricing {
  text-align: right;
  flex-shrink: 0;
}

.hom-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
}

.hom-price-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2563eb;
}

.hom-price-period {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.hom-billed-text {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* Form Styles */
.hom-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .hom-form-grid {
    grid-template-columns: 1fr;
  }
}

.hom-field {
  display: flex;
  flex-direction: column;
}

.hom-field-full {
  margin-top: 0.85rem;
}

.hom-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.hom-req {
  color: #ef4444;
}

.hom-opt {
  color: #94a3b8;
  font-weight: normal;
  font-size: 0.75rem;
}

.hom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hom-input-icon {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.hom-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.hom-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hom-select {
  cursor: pointer;
  appearance: auto;
}

.hom-textarea {
  padding-left: 0.85rem;
  resize: vertical;
  min-height: 56px;
  font-family: inherit;
}

/* Alert Box */
.hom-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.825rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer & Submit */
.hom-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.hom-guarantee {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hom-guarantee i {
  color: #10b981;
}

.hom-submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hom-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.6);
}

.hom-submit-btn:active {
  transform: translateY(0);
}

.hom-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success View */
.hom-success-view {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.hom-success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hom-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 0 10px #f0fdf4;
}

.hom-success-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #15803d;
  background: #dcfce7;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.hom-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.hom-success-text {
  font-size: 0.925rem;
  color: #475569;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.hom-order-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.hom-order-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.hom-order-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2563eb;
  font-family: monospace;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hom-order-hint {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.hom-success-actions {
  display: flex;
  justify-content: center;
}
