/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #BCB812 0%, #9E9A10 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8em;
}

h3 {
  color: #555;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95em;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1em;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #BCB812;
  box-shadow: 0 0 0 3px rgba(188, 184, 18, 0.1);
}

select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23BCB812' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ============================================
   BUTTONS
   ============================================ */
button {
  padding: 12px 20px;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-search {
  width: 100%;
  background: linear-gradient(135deg, #BCB812 0%, #9E9A10 100%);
  color: white;
  margin-top: 20px;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(188, 184, 18, 0.35);
}

.btn-search:active {
  transform: translateY(0);
}

.btn-document {
  width: 100%;
  background: #10b981;
  color: white;
  margin-bottom: 10px;
}

.btn-document:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-audit {
  width: 100%;
  background: #f59e0b;
  color: white;
  margin-top: 15px;
}

.btn-audit:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-cancel {
  width: 100%;
  background: #ef4444;
  color: white;
  margin-top: 10px;
}

.btn-cancel:hover {
  background: #dc2626;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

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

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.alert.hidden {
  display: none;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.result-details {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #BCB812;
}

.result-details p {
  margin: 8px 0;
  color: #555;
  font-size: 0.95em;
}

.documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

hr {
  margin: 25px 0;
  border: none;
  border-top: 2px solid #e5e7eb;
}

/* ============================================
   OTP SECTION
   ============================================ */
#otpSection {
  border: 2px solid #f59e0b;
}

#otpInput {
  text-align: center;
  font-size: 1.2em;
  letter-spacing: 5px;
  font-weight: bold;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    max-width: 100%;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .card {
    padding: 20px;
    border-radius: 8px;
  }

  input[type="text"],
  select {
    padding: 10px 12px;
    font-size: 16px;
  }

  button {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}
