

.ansokan-page {
  min-height: 100vh;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.ansokan-page .contact-section-srk {
  padding-top: calc(72px + 2rem);
}

.ansokan-type-grid-public {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin-top: 1.5rem;
}

.ansokan-type-card-public {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ansokan-type-card-public__thumb {
  width: clamp(104px, 28vw, 140px);
  height: clamp(104px, 28vw, 140px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.ansokan-type-card-public__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.ansokan-type-card-public__letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 800;
  color: #1e40af;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border: 2px solid rgba(30, 64, 175, 0.2);
}

.ansokan-type-card-public:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(14, 165, 233, 0.35);
}

.ansokan-type-card-public__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ansokan-type-card-public__hint {
  font-size: 0.88rem;
  color: #64748b;
}

.ansokan-intro {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}

.ansokan-intro h2,
.ansokan-intro__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.ansokan-intro p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.ansokan-intro p:last-child {
  margin-bottom: 0;
}

.ansokan-discord-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
}

.ansokan-discord-panel__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.ansokan-discord-panel__meta {
  flex: 1;
  min-width: 0;
}

.ansokan-discord-panel__meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ansokan-discord-panel__meta small {
  display: block;
  opacity: 0.92;
  font-size: 0.82rem;
  word-break: break-all;
}

.ansokan-captcha-wrap {
  margin: 1.25rem 0 1.5rem;
}

.ansokan-captcha-missing {
  padding: 1rem 1.15rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  color: #92400e;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.ansokan-form .req {
  color: #dc2626;
  font-weight: 700;
}

.ansokan-form .req--secondary {
  color: #b45309;
  font-weight: 700;
}

.ansokan-form .char-count {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}

.ansokan-discord-gate {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ansokan-discord-gate p {
  margin: 0;
}

.document-hero-page .ansokan-page--form {
  min-height: 0;
  padding-bottom: 0;
  background: transparent;
}

.document-hero-page .ansokan-page--form .ansokan-form-sheet {
  padding-top: 0;
}

.rules-container--ansokan-hub {
  max-width: 1400px;
  margin: 0 auto;
}

.rules-container--ansokan-form {
  max-width: 800px;
  margin: 0 auto;
}

.ansokan-hub-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section-heading--sub {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-bottom: 0.35rem;
}

.ansokan-form-lead {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.ansokan-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ansokan-alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ansokan-discord-footer {
  margin: 2rem 0 1.5rem;
  padding: 1.35rem 1.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.ansokan-discord-footer__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.ansokan-discord-footer__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

.ansokan-discord-footer__none {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
}

.ansokan-discord-footer .ansokan-discord-panel {
  margin-bottom: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.28);
}

.ansokan-discord-panel__hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  opacity: 0.95;
  line-height: 1.45;
}

.ansokan-unlink-btn {
  display: inline-block;
  margin-top: 0.65rem;
  text-align: left;
}

.btn-text-srk {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.btn-text-srk:hover {
  opacity: 0.9;
}

.btn-discord-ansokan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn-discord-ansokan:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 26px rgba(88, 101, 242, 0.42);
}

.ansokan-submit-hint {
  margin-top: 0.5rem;
  color: #b45309;
  font-weight: 600;
}

.document-rules-section .ansokan-hub {
  background: transparent;
  min-height: 0;
  padding-bottom: 0;
}

.document-rules-section .ansokan-hub .ansokan-hub-section {
  padding-top: 0;
}

.ansokan-srk-rules {
  text-align: left;
  font-size: 1.125rem;
}

.ansokan-srk-back {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.ansokan-srk-back a {
  color: var(--blue, #1e40af);
  font-weight: 600;
  text-decoration: none;
}

.ansokan-srk-back a:hover {
  text-decoration: underline;
}

.ansokan-srk-intro__h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
}

.ansokan-srk-intro p {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 1.125rem;
}

.ansokan-srk-intro p:last-child {
  margin-bottom: 0;
}

.ansokan-srk-divider {
  height: 1px;
  width: 75%;
  margin: 2.5rem 12.5% 1.5rem 0;
  background-color: #333;
}

.application-form .form-group {
  margin-bottom: 1.5rem;
}

.application-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.application-form .required {
  color: #dc2626;
}

.application-form .required--secondary {
  color: #b45309;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="date"],
.application-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.application-form input:focus,
.application-form textarea:focus {
  outline: none;
  border-color: #1e40af;
}

.application-form textarea {
  min-height: 120px;
  resize: vertical;
}

.application-form .char-counter {
  text-align: right;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.35rem;
}

.application-form .char-counter--warn {
  color: #dc2626;
  font-weight: 600;
}

.application-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.application-form .checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.application-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.application-form .checkbox-group label a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: underline;
}

.ansokan-srk-hint {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}

.ansokan-srk-larm-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ansokan-srk-larm-title,
.ansokan-srk-confirm-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ansokan-srk-confirm-title {
  margin-top: 0.5rem;
}

.alert-error.ansokan-srk-alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
  font-size: 0.95rem;
}

.ansokan-srk-submit-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.application-form .submit-btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  min-height: 52px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.application-form .submit-btn--primary:hover:not(:disabled):not(.is-loading) {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.42);
  transform: translateY(-1px);
}

.application-form .submit-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.application-form .submit-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.2);
}

.application-form .submit-btn--primary.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.application-form .submit-btn__spinner {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ansokan-spin 0.7s linear infinite;
}

.application-form .submit-btn--primary.is-loading .submit-btn__spinner {
  display: block;
}

.application-form .submit-btn--primary.is-loading .submit-btn__label {
  opacity: 0.92;
}

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

.ansokan-srk-status-wrap {
  margin-top: 1.25rem;
}

.ansokan-srk-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
}

.ansokan-srk-status.is-pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.ansokan-srk-status.is-ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
}

.ansokan-srk-status.is-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
}

@media (max-width: 480px) {
  .rules-container--ansokan-hub,
  .rules-container--ansokan-form {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-form .submit-btn__spinner {
    animation: none;
    border-top-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
  }
}
