:root {
      --primary-green: #b1a37a;
      --primary-green-dark: #412e0e;
      --secondary-green: #d6c16a;
      --success-green: #876f19;
      --warning-orange: #fd7e14;
      --light-bg: #f8fafc;
      --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
      --border-radius: 16px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      background: linear-gradient(135deg, #b79e52 0%, #65501a 100%);
      min-height: 100vh;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      padding: 20px 0;
    }

    .main-container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 15px;
    }

    .portal-header {
      background: linear-gradient(135deg, #a67c58 0%, #d0ad77 100%);
      color: white;
      padding: 40px 30px;
      border-radius: var(--border-radius);
      box-shadow: var(--card-shadow);
      margin-bottom: 30px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .logo-container {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
    }

    .logo {
      width: 80px;
      height: 80px;
      margin-right: 20px;
      background: white;
      border-radius: 50%;
      padding: 10px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
    }

    .portal-header::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
      animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(180deg); }
    }

    .portal-header h1 {
      font-size: 32px;
      font-weight: 800;
      margin-bottom: 12px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
      position: relative;
      z-index: 1;
    }

    .portal-header h2 {
      font-size: 18px;
      opacity: 0.95;
      font-weight: 400;
      position: relative;
      z-index: 1;
    }

    .trace-button {
        position: relative;
        z-index: 2;
    }

    .form-card {
      background: white;
      border-radius: var(--border-radius);
      box-shadow: var(--card-shadow);
      border: none;
      overflow: hidden;
      transition: transform 0.3s ease;
    }

    .form-card:hover {
      transform: translateY(-2px);
    }

    .card-header {
      background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
      color: white;
      padding: 20px 30px;
      border: none;
      font-size: 20px;
      font-weight: 700;
      text-align: center;
      position: relative;
    }

    .card-header i {
      margin-right: 10px;
      font-size: 22px;
    }

    .card-body {
      padding: 40px;
      background: var(--light-bg);
    }

    .form-group {
      margin-bottom: 25px;
      position: relative;
    }

    .form-label {
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      font-size: 14px;
    }

    .form-label i {
      margin-right: 8px;
      color: var(--primary-green);
      width: 16px;
    }

    .form-control, .form-select {
      border: 2px solid #e1e5e9;
      border-radius: 12px;
      padding: 12px 16px;
      font-size: 15px;
      transition: all 0.3s ease;
      background: white;
    }

    .form-control:focus, .form-select:focus {
      border-color: var(--primary-green);
      box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.1);
      background: white;
    }

    .form-control::placeholder {
      color: #9ca3af;
      font-style: italic;
    }

    .file-input-wrapper {
      position: relative;
      overflow: hidden;
      border: 2px dashed #d1d5db;
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      background: white;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .file-input-wrapper:hover {
      border-color: var(--primary-blue);
      background: #f8fafc;
    }

    .file-input-wrapper input[type=file] {
      position: absolute;
      left: -9999px;
    }

    .file-upload-text {
      color: #6b7280;
      font-size: 14px;
    }

    .file-upload-icon {
      color: var(--primary-blue);
      font-size: 24px;
      margin-bottom: 8px;
    }

    .btn-submit {
      background: linear-gradient(135deg, var(--success-green) 0%, #157347 100%);
      border: none;
      padding: 15px 40px;
      font-size: 18px;
      font-weight: 700;
      border-radius: 50px;
      color: white;
      transition: all 0.3s ease;
      box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
      color: white;
    }

    .btn-submit:active {
      transform: translateY(0);
    }

    .progress-bar {
      height: 4px;
      background: #e9ecef;
      border-radius: 2px;
      margin-bottom: 30px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
      width: 0%;
      transition: width 0.3s ease;
      border-radius: 2px;
    }

    .success-message {
      background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
      border: 2px solid var(--success-green);
      border-radius: var(--border-radius);
      padding: 25px;
      margin-bottom: 30px;
      box-shadow: var(--card-shadow);
      animation: slideIn 0.5s ease;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .success-message h4 {
      color: var(--success-green);
      font-weight: 700;
      margin-bottom: 15px;
    }

    .info-item {
      background: white;
      padding: 10px 15px;
      border-radius: 8px;
      margin-bottom: 8px;
      border-left: 4px solid var(--primary-green);
    }

    .footer-info {
      background: rgba(255,255,255,0.95);
      padding: 25px;
      border-radius: var(--border-radius);
      margin-top: 30px;
      text-align: center;
      box-shadow: var(--card-shadow);
    }

    .required-asterisk {
      color: #dc3545;
      font-weight: bold;
    }

    .input-group-text {
      background: var(--primary-green);
      color: white;
      border: none;
      border-radius: 12px 0 0 12px;
    }

    .floating-elements {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: -1;
    }

    .floating-circle {
      position: absolute;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(180deg); }
    }

    .floating-circle:nth-child(1) { top: 10%; left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
    .floating-circle:nth-child(2) { top: 20%; right: 20%; width: 120px; height: 120px; animation-delay: 2s; }
    .floating-circle:nth-child(3) { bottom: 30%; left: 30%; width: 60px; height: 60px; animation-delay: 4s; }

    @media (max-width: 768px) {
      .portal-header h1 { font-size: 24px; }
      .card-body { padding: 25px; }
      .btn-submit { font-size: 16px; padding: 12px 30px; }
    }

    .validation-feedback {
      color: #dc3545;
      font-size: 12px;
      margin-top: 5px;
      display: none;
    }

    .form-control.is-invalid {
      border-color: #dc3545;
    }

    .form-control.is-valid {
      border-color: var(--success-green);
    }