/* SMS Chat Widget — wedding style, light pink & maroon */

#nc-sms-chat-widget {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9999;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Bubble button */
#nc-sms-chat-toggle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  background: radial-gradient(circle at 25% 20%, #ffe4ef, #f8a1b5 50%, #7b1e3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#nc-sms-chat-toggle img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

#nc-sms-chat-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(123, 30, 58, 0.5);
}

/* Popup backdrop */
#nc-sms-chat-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
}

#nc-sms-chat-popup.nc-open {
  display: flex;
  pointer-events: auto;
}

/* Card */
.nc-sms-chat-card {
  margin: 0 0 105px 18px;
  max-width: 360px;
  width: 92vw;
  background: rgba(255, 245, 249, 0.98);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(123, 30, 58, 0.20);
  padding: 18px 18px 16px;
  position: relative;
  backdrop-filter: blur(10px);
  animation: nc-sms-chat-pop 0.22s ease-out;
}

@keyframes nc-sms-chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.nc-sms-chat-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(123, 30, 58, 0.1);
  color: #7b1e3a;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.nc-sms-chat-header {
  padding-right: 26px;
  margin-bottom: 12px;
}

.nc-sms-chat-title {
  font-family: 'Great Vibes', cursive;
  font-size: 26px;
  color: #7b1e3a;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.nc-sms-chat-subtitle {
  font-size: 12px;
  color: #8b3e4d;
}

/* Form */
#nc-sms-chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nc-sms-chat-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  color: #7b1e3a;
  font-weight: 500;
}

.nc-optional {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.75;
}

.nc-sms-chat-field input,
.nc-sms-chat-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(123, 30, 58, 0.25);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #fff7fb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  resize: vertical;
}

.nc-sms-chat-field input:focus,
.nc-sms-chat-field textarea:focus {
  border-color: #e0466d;
  box-shadow: 0 0 0 1px rgba(224, 70, 109, 0.18);
  background: #ffffff;
}

/* Status message */
.nc-sms-chat-status {
  min-height: 18px;
  font-size: 11px;
  margin-top: 2px;
}

.nc-sms-chat-status.nc-success {
  color: #2e7d32;
}

.nc-sms-chat-status.nc-error {
  color: #c62828;
}

/* Submit button */
#nc-sms-chat-submit {
  margin-top: 4px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f06292, #e91e63, #7b1e3a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

#nc-sms-chat-submit:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

#nc-sms-chat-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(233, 30, 99, 0.55);
}

/* Spinner */
.nc-sms-chat-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: nc-sms-chat-spin 0.8s linear infinite;
  display: none;
}

#nc-sms-chat-submit.nc-loading .nc-sms-chat-spinner {
  display: inline-block;
}

#nc-sms-chat-submit.nc-loading .nc-sms-chat-submit-text {
  opacity: 0.8;
}

@keyframes nc-sms-chat-spin {
  to { transform: rotate(360deg); }
}

/* Footer note */
.nc-sms-chat-footer-note {
  margin-top: 8px;
  font-size: 11px;
  color: #8b3e4d;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .nc-sms-chat-card {
    margin-bottom: 96px;
    max-width: 94vw;
  }

  .nc-sms-chat-title {
    font-size: 24px;
  }
}
