/* ============================================================
   ĐĂNG KÝ - UI ĐẸP & HIỆU ỨNG ẤN TƯỢNG
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.dangky-hero {
  position: relative;
  background: linear-gradient(145deg, #e67e22 0%, #d35400 50%, #a04000 100%);
  padding: 65px 20px 55px;
  text-align: center;
  color: white;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 20px 60px rgba(211, 84, 0, 0.3);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dangky-hero:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 80px rgba(211, 84, 0, 0.4);
}

/* Background Pattern */
.dangky-hero .hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, #ffffff 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, #ffffff 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, #ffffff 2px, transparent 2px),
    radial-gradient(circle at 70% 70%, #ffffff 2px, transparent 2px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Decoration Shapes */
.dangky-hero .hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dangky-hero .hero-shape.s1 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  right: -60px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  animation: shapeFloat 8s ease-in-out infinite;
}

.dangky-hero .hero-shape.s2 {
  width: 160px;
  height: 160px;
  top: -50px;
  left: 20%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.05);
  animation: shapeFloat 6s ease-in-out infinite 2s;
}

@keyframes shapeFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10px, -15px) scale(1.05);
  }
}

/* Accent Line */
.dangky-hero .hero-accent-line {
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 5px;
  background: linear-gradient(180deg, #ffd700, #f39c12, #ffd700);
  border-radius: 0 5px 5px 0;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.05);
  }
}

/* Floating Emojis */
.dangky-hero .hero-emoji {
  position: absolute;
  font-size: 40px;
  opacity: 0.12;
  animation: emojiFloat 14s linear infinite;
  pointer-events: none;
}

.dangky-hero .hero-emoji.e1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}
.dangky-hero .hero-emoji.e2 {
  bottom: 15%;
  right: 18%;
  animation-delay: 5s;
  font-size: 30px;
}
.dangky-hero .hero-emoji.e3 {
  top: 25%;
  left: 8%;
  animation-delay: 9s;
  font-size: 35px;
}

@keyframes emojiFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.18;
  }
  50% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }
  75% {
    transform: translateY(20px) rotate(-10deg);
    opacity: 0.18;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }
}

/* Hero Content */
.dangky-hero .hero-content {
  position: relative;
  z-index: 2;
}

.dangky-hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 6px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.15);
  margin-bottom: 14px;
  animation: slideDown 0.8s ease-out;
}

.dangky-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: white;
  font-family: "Playfair Display", serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.8s ease-out 0.1s both;
}

.dangky-hero h1 span {
  color: #ffd700;
}

.dangky-hero p {
  font-size: 18px;
  opacity: 0.85;
  margin-top: 6px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  animation: slideDown 0.8s ease-out 0.2s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dangky-hero .hero-deco {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  animation: slideDown 0.8s ease-out 0.4s both;
}

.dangky-hero .hero-deco span {
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  opacity: 0.4;
  animation: dotPulse 2s ease-in-out infinite;
}

.dangky-hero .hero-deco span:nth-child(2) {
  width: 40px;
  border-radius: 10px;
  opacity: 0.6;
  animation-delay: 0.5s;
}

.dangky-hero .hero-deco span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.dangky-section {
  padding: 60px 20px 80px;
  background: linear-gradient(135deg, #faf6f2 0%, #ffffff 50%, #fef9f5 100%);
  position: relative;
}

/* .dangky-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e67e22, #f39c12, #e67e22);
  background-size: 200% 100%;
  animation: gradientMove 3s ease-in-out infinite;
} */

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dangky-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   FORM WRAPPER
   ============================================================ */
.form-wrapper {
  background: white;
  border-radius: 24px;
  padding: 40px 42px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-wrapper:hover {
  border-color: #e67e22;
  box-shadow: 0 10px 50px rgba(230, 126, 34, 0.08);
}

/* Form wrapper glow border */
.form-wrapper::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, #e67e22 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.form-wrapper:hover::before {
  opacity: 1;
}

/* ===== FORM HEADER ===== */
.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
  font-family: "Playfair Display", serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-header h2 i {
  color: #e67e22;
  font-size: 28px;
}

.form-header p {
  color: #999;
  font-size: 14px;
  margin-top: 4px;
  padding-left: 38px;
}

/* ===== FORM MESSAGE ===== */
.form-message {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  font-weight: 600;
  font-size: 14px;
  animation: slideDown 0.4s ease;
}

.form-message.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border: 1px solid #b8daff;
  display: block;
}

.form-message.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ===== FORM GROUP ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
  font-size: 14px;
  transition: color 0.3s ease;
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: #fafafa;
  color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
  background: white;
  transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #e67e2260;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.btn-submit::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-submit:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.btn-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(230, 126, 34, 0.35);
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-submit i {
  font-size: 18px;
}

/* ===== FORM FOOTER ===== */
.form-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #f0f0f0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  transition: border-color 0.3s ease;
}

.form-wrapper:hover .form-footer {
  border-color: #e67e2230;
}

.form-footer p {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.form-footer p:hover {
  color: #e67e22;
}

.form-footer p i {
  color: #e67e22;
  font-size: 16px;
  width: 20px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e67e22, #f39c12);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sidebar-card:hover::before {
  opacity: 1;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  border-color: #e67e22;
  box-shadow: 0 12px 45px rgba(230, 126, 34, 0.08);
}

.sidebar-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card h3 i {
  color: #e67e22;
}

.sidebar-card p {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.sidebar-card p:hover {
  color: #2c3e50;
}

.sidebar-card p i {
  color: #e67e22;
  width: 20px;
  font-size: 16px;
}

/* Sidebar card highlight */
.sidebar-card.highlight {
  background: linear-gradient(135deg, #e67e22, #d35400);
  border: none;
  color: white;
}

.sidebar-card.highlight h3 {
  color: white;
}

.sidebar-card.highlight h3 i {
  color: #ffd700;
}

.sidebar-card.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-card.highlight p i {
  color: #ffd700;
}

.sidebar-card.highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(230, 126, 34, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .dangky-container {
    grid-template-columns: 1fr;
  }
  .form-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .dangky-hero {
    border-radius: 0 0 16px 16px;
    padding: 45px 20px 35px;
    min-height: auto;
  }
  .dangky-hero h1 {
    font-size: 30px;
  }
  .dangky-hero p {
    font-size: 15px;
  }
  .dangky-hero .hero-shape,
  .dangky-hero .hero-emoji,
  .dangky-hero .hero-accent-line {
    display: none;
  }

  .form-wrapper {
    padding: 25px 20px;
  }
  .form-header h2 {
    font-size: 22px;
  }
  .form-header p {
    padding-left: 0;
  }
  .form-header h2 i {
    font-size: 22px;
  }

  .form-footer {
    flex-direction: column;
    gap: 8px;
  }

  .form-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .dangky-hero {
    border-radius: 0 0 12px 12px;
    padding: 30px 16px;
  }
  .dangky-hero h1 {
    font-size: 24px;
  }
  .dangky-hero p {
    font-size: 14px;
  }
  .dangky-hero .hero-badge {
    font-size: 11px;
    padding: 4px 16px;
  }

  .form-wrapper {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .form-header h2 {
    font-size: 18px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .btn-submit {
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 40px;
  }

  .sidebar-card {
    padding: 16px 18px;
    border-radius: 16px;
  }
  .sidebar-card h3 {
    font-size: 15px;
  }
  .sidebar-card p {
    font-size: 13px;
  }
}

/* ============================================================
   FIX: INPUT BỊ CHẶN BỞI FORM-WRAPPER
   ============================================================ */

/* Đảm bảo các input nằm trên form-wrapper */
.dangky-section .form-wrapper {
  pointer-events: none !important; /* Form wrapper không nhận sự kiện */
}

.dangky-section .form-wrapper * {
  pointer-events: auto !important; /* Các con bên trong nhận sự kiện */
}

.dangky-section .form-wrapper input,
.dangky-section .form-wrapper select,
.dangky-section .form-wrapper textarea,
.dangky-section .form-wrapper button,
.dangky-section .form-wrapper .form-group,
.dangky-section .form-wrapper label {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}
