/* Ask-movie form — styles matched to bfzy.tv/ask-movie */
.ask-movie-page {
  --am-primary: #008ffd;
  --am-hover: #0b87e7;
  --am-border: #ccddf2;
  --am-text: #000000;
  --am-radius-lg: 8px;
  --am-radius-md: 4px;
  --am-spacing-xs: 4px;
  --am-spacing-sm: 8px;
  --am-spacing-md: 16px;
  --am-spacing-lg: 24px;
  --am-spacing-xl: 32px;
  background: #f5f5f5;
  min-height: 100vh;
}

.ask-movie-page .ask-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--am-spacing-md);
}

.ask-card {
  background: #ffffff;
  border-radius: var(--am-radius-lg);
  border: 1px solid var(--am-border);
  box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 3px, rgba(0, 0, 0, 0.04) 0px 4px 12px;
  overflow: hidden;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ask-card:hover {
  box-shadow: rgba(0, 143, 253, 0.1) 0px 4px 12px, rgba(0, 0, 0, 0.08) 0px 2px 6px;
}

.ask-card-header {
  background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-hover) 100%);
  color: #fff;
  padding: var(--am-spacing-xl) var(--am-spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ask-card-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.ask-card-header::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.ask-card-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  margin: 0 0 var(--am-spacing-sm) 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.ask-card-subtitle {
  font-size: clamp(14px, 3vw, 16px);
  opacity: 0.95;
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
}

.ask-card-content {
  padding: var(--am-spacing-xl) var(--am-spacing-lg);
}

.ask-notice {
  background: linear-gradient(135deg, rgba(0, 143, 253, 0.05), rgba(0, 143, 253, 0.02));
  padding: var(--am-spacing-md) var(--am-spacing-lg);
  border-radius: var(--am-radius-md);
  margin-bottom: var(--am-spacing-lg);
  border-width: 1px 1px 1px 4px;
  border-style: solid;
  border-color: rgba(0, 143, 253, 0.15);
}

.ask-notice-title {
  font-weight: 700;
  margin: 0 0 var(--am-spacing-sm) 0;
  color: var(--am-primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 22px;
}

.ask-notice-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23008ffd'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center center / contain no-repeat;
}

.ask-notice-list {
  margin: 0;
  padding-left: 24px;
  color: rgb(75, 85, 99);
  font-size: 14px;
  line-height: 1.8;
}

.ask-notice-list li {
  margin-bottom: var(--am-spacing-xs);
  position: relative;
}

.ask-notice-list li::marker {
  color: var(--am-primary);
}

.ask-form-group {
  margin-bottom: var(--am-spacing-lg);
}

.ask-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--am-spacing-sm);
  color: var(--am-text);
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 22px;
}

.ask-required {
  color: rgb(239, 68, 68);
  margin-left: 4px;
}

.ask-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--am-border);
  border-radius: var(--am-radius-md);
  font-size: 15px;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  line-height: 22px;
  outline: none;
}

.ask-form-input:hover {
  border-color: var(--am-primary);
}

.ask-form-input:focus {
  outline: none;
  border-color: var(--am-primary);
  box-shadow: rgba(0, 143, 253, 0.1) 0px 0px 0px 3px;
}

.ask-form-input::placeholder {
  color: rgb(156, 163, 175);
  opacity: 1;
}

.ask-form-help {
  font-size: 13px;
  color: rgb(107, 114, 128);
  margin-top: var(--am-spacing-xs);
  line-height: 1.5;
}

.ask-verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--am-spacing-lg);
  flex-wrap: wrap;
}

.ask-verify-row .ask-form-label {
  margin-bottom: 0;
}

.ask-verify-row .ask-form-input {
  width: 120px;
  padding: 8px 12px;
}

.ask-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-hover) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--am-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: var(--am-spacing-sm);
  box-shadow: rgba(0, 143, 253, 0.25) 0px 2px 8px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  line-height: 22px;
  text-align: center;
}

.ask-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ask-submit:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.ask-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: rgba(0, 143, 253, 0.35) 0px 4px 16px;
}

.ask-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: rgba(0, 143, 253, 0.25) 0px 2px 8px;
}

.ask-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgb(148, 163, 184), rgb(100, 116, 139));
}

.ask-recent {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 var(--am-spacing-md) var(--am-spacing-md);
}

.ask-recent-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--am-primary);
}

.ask-msg-item {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 3px;
}

.ask-msg-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #6b7280;
  border-bottom: 1px dashed var(--am-border);
  padding-bottom: 8px;
}

.ask-msg-body {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  word-break: break-word;
}

.ask-msg-reply {
  margin-top: 12px;
  padding: 12px;
  background: #f0f7ff;
  border-radius: var(--am-radius-md);
  font-size: 13px;
  color: #1f2937;
}

.gbook_content_hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* MacCMS toast / popup — needed because gbook page no longer loads detail.css */
.mac_pop_bg,
.mac_pop_msg_bg {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
}

.mac_pop,
.mac_pop_msg {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  min-width: 180px;
  min-height: 48px !important;
  height: auto !important;
  max-width: 92vw;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  box-sizing: border-box;
}

.mac_pop_msg {
  width: auto !important;
}

.mac_pop_msg .pop-msg {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  padding: 18px 20px;
  color: #1f2937;
  white-space: nowrap;
}

.mac_pop .pop_top {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6ebf2;
}

.mac_pop .pop_top h2 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.mac_pop span.pop_close {
  cursor: pointer;
  font-size: 16px;
  color: #8a97a8;
  line-height: 1;
}

.mac_pop span.pop_close:hover {
  color: #1f2937;
}

.mac_pop .pop_content {
  padding: 12px 16px 16px;
  overflow: auto;
  max-height: calc(85vh - 48px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ask-movie-page .ask-wrap {
    padding: 12px;
  }

  .ask-card-header {
    padding: var(--am-spacing-lg) var(--am-spacing-md);
  }

  .ask-card-title {
    font-size: 24px;
  }

  .ask-card-subtitle {
    font-size: 14px;
  }

  .ask-card-content {
    padding: var(--am-spacing-lg) var(--am-spacing-md);
  }

  .ask-recent {
    padding: 0 12px 12px;
  }
}
