/* ==========================================
   GOOGLE FONTS IMPORT (Plus Jakarta Sans)
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES (THEME COLOR PALETTE)
   - Dominan: Tech Navy Blue & Cyan Glow
   - Mix: Warm Brown & Soft Cream
   ========================================== */
:root {
  --bg-dark: #070d1e;
  --bg-gradient: linear-gradient(135deg, #070d1e 0%, #111c38 50%, #070d1e 100%);
  
  --card-bg: #fefdfa;           /* Soft Warm Cream */
  --card-border: #e6ded5;
  
  --text-main: #0f172a;         /* Deep Slate Navy */
  --text-muted: #64748b;
  --text-brown: #8a6d55;        /* Soft Warm Brown Accent */
  
  --primary-blue: #0284c7;      /* Tech Blue */
  --primary-cyan: #06b6d4;      /* Vibrant Cyan */
  --cyan-glow: rgba(6, 182, 212, 0.25);
  
  --accent-cream: #f5eedf;      /* Rich Cream Container */
  --cream-border: #d8ccbb;
  
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  
  --radius-card: 20px;
  --radius-btn: 10px;
  --radius-input: 8px;
  
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.18);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
  position: relative;
  overflow-x: hidden;
}

/* Background Geometric Lines & Grid Patterns */
.bg-pattern-grid {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-pattern-glow {
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; 
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.main-wrapper {
  width: 100%;
  max-width: 660px;
  position: relative;
  z-index: 1;
}

/* ==========================================
   CARD CONTAINER & BANNER HEADER
   ========================================== */
.form-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 35px 32px;
  overflow: hidden;
}

.banner-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

/* Header Text */
.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.badge-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.form-header h2 {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 13px;
  color: var(--text-brown);
  font-weight: 500;
}

/* ==========================================
   LOGIN GUARD (GOOGLE AUTHENTICATION BOX)
   ========================================== */
.login-guard-box {
  background-color: var(--accent-cream);
  border: 2px dashed var(--cream-border);
  border-radius: 14px;
  padding: 35px 20px;
  text-align: center;
}

.lock-avatar {
  width: 52px; 
  height: 52px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 0 auto 14px auto;
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.login-guard-box h3 {
  font-size: 17px;
  color: #1e293b;
  margin-bottom: 6px;
}

.login-guard-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.google-btn-wrapper {
  display: flex;
  justify-content: center;
}

/* ==========================================
   USER BADGE & SECTION TITLES
   ========================================== */
.user-badge {
  background: linear-gradient(135deg, #e0f2fe, #cff4fc);
  border-left: 4px solid var(--primary-cyan);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.user-badge .label {
  display: block;
  font-size: 11px;
  color: #0369a1;
  font-weight: 600;
}

.user-badge strong {
  font-size: 13.5px;
  color: #0c4a6e;
}

.verified-icon {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
}

.form-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 26px 0 16px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

/* ==========================================
   FORM CONTROLS & GRID LAYOUT
   ========================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.span-2 { 
  grid-column: span 2; 
}

.form-group { 
  margin-bottom: 16px; 
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.required { 
  color: #ef4444; 
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  font-size: 13.5px;
  color: var(--text-main);
  background-color: var(--input-bg);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.input-uppercase {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-blue) !important;
}

.input-disabled {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed;
}

/* Info Alert */
.info-alert {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #78350f;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex; 
  gap: 10px;
  margin-bottom: 18px;
}

/* ==========================================
   UPLOAD SECTIONS (FILE BOXES)
   ========================================== */
.upload-section {
  background-color: var(--accent-cream);
  border: 1.5px dashed var(--cream-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.upload-box { 
  margin-bottom: 14px; 
}

.upload-box:last-child { 
  margin-bottom: 0; 
}

.upload-box label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-brown);
  margin-bottom: 6px;
  display: block;
}

.upload-box input[type="file"] {
  width: 100%;
  font-size: 12px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
}

.upload-box input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
}

/* ==========================================
   TERMS & CONDITIONS CHECKBOX BOX
   ========================================== */
.checkbox-group {
  margin-top: 20px;
  margin-bottom: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  cursor: pointer;
  background-color: #f8fafc;
  border: 1px solid var(--input-border);
  padding: 14px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--primary-cyan);
  background-color: #f0f9ff;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-label a:hover {
  color: var(--primary-cyan);
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s ease;
}

.btn-submit:hover { 
  transform: translateY(-2px); 
}

.btn-submit:disabled { 
  background: #cbd5e1; 
  box-shadow: none; 
  cursor: not-allowed; 
  transform: none; 
}

/* Response Message */
#responseMessage {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.msg-success { 
  background: #d1fae5; 
  color: #065f46; 
}

.msg-error { 
  background: #fee2e2; 
  color: #991b1b; 
}

/* ==========================================
   SUCCESS PAGE STYLING
   ========================================== */
.success-page {
  text-align: left;
  padding-top: 10px;
}

.success-icon-wrap {
  text-align: center;
  margin-bottom: 15px;
}

.success-icon {
  width: 60px; 
  height: 60px;
  background: #10b981;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; 
  justify-content: center;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.success-page h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.success-intro {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.success-alert {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cs-instruction {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.cs-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.cs-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.cs-link {
  font-size: 11.5px;
  color: #0284c7;
  font-weight: 600;
}

.community-desc {
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 12px;
}

.community-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.btn-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.btn-community:hover { 
  transform: translateY(-2px); 
}

.btn-wa { 
  background-color: #25d366; 
}

.btn-tele { 
  background-color: #229ed9; 
}

.success-footer {
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  font-style: italic;
}

.hidden { 
  display: none !important; 
}

/* ==========================================
   RESPONSIVE (MOBILE OPTIMIZATION)
   ========================================== */
@media (max-width: 580px) {
  .form-grid, 
  .cs-grid, 
  .community-buttons { 
    grid-template-columns: 1fr; 
  }
  
  .span-2 { 
    grid-column: span 1; 
  }
  
  .form-card { 
    padding: 25px 18px; 
  }
}
