/* =============================================
   Request Approval Page - Premium Styles
   ============================================= */

/* Hero Banner */
.approval-hero {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #01579b 100%);
  color: white;
  padding: 5rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.approval-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
}

.approval-hero .container {
  position: relative;
  z-index: 1;
}

.approval-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.approval-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form Section */
.approval-section {
  padding: 0 1rem 5rem;
  background: #f0f4f8;
  min-height: 60vh;
}

.approval-card {
  max-width: 820px;
  margin: -4rem auto 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(13, 71, 161, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.approval-card-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #e1e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.approval-card-header .header-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}

.approval-card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 0.2rem;
}

.approval-card-header p {
  font-size: 0.9rem;
  color: #546e7a;
  margin: 0;
}

.approval-form-body {
  padding: 2.5rem;
  text-align: start;
}

/* Form Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-2 .full-width {
  grid-column: 1 / -1;
}

/* Form Groups */
.form-group-ra {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group-ra label {
  text-align: start;
  font-size: 0.88rem;
  font-weight: 600;
  color: #37474f;
  letter-spacing: 0.01em;
}

.form-group-ra label .req {
  color: #e53935;
  margin-left: 2px;
}

.form-control-ra {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid #cfd8dc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #263238;
  background: #f8fafc;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control-ra::placeholder {
  color: #b0bec5;
}

.form-control-ra:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
  background: #ffffff;
}

textarea.form-control-ra {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select.form-control-ra {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23607d8b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* File Upload */
.file-upload-ra {
  border: 2px dashed #b0bec5;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
  background: #fafcff;
  position: relative;
}

.file-upload-ra:hover,
.file-upload-ra.drag-over {
  border-color: #1565c0;
  background: #e8f0fe;
}

.file-upload-ra i {
  font-size: 2rem;
  color: #1565c0;
  margin: 0 auto 0.6rem;
  display: block;
}

.file-upload-ra p {
  margin: 0.2rem 0;
  color: #546e7a;
  font-size: 0.9rem;
}

.file-upload-ra p strong {
  color: #1565c0;
}

.file-upload-ra input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-name-display {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
}

.file-chip i {
  font-size: 0.75rem;
}

/* Section divider */
.form-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #90a4ae;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e8eef3;
  margin-bottom: 1.25rem;
  grid-column: 1 / -1;
}

/* Alert messages */
.alert-ra {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-ra.show {
  display: flex;
}

.alert-ra.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-ra.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.alert-ra i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Submit Button */
.btn-submit-ra {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
  margin-top: 1.5rem;
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.btn-submit-ra:hover:not(:disabled) {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.4);
}

.btn-submit-ra:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-ra:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit-ra .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit-ra.loading .spinner {
  display: block;
}

.btn-submit-ra.loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

/* Responsive */
@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid-2 .full-width {
    grid-column: 1;
  }

  .approval-hero h1 {
    font-size: 2rem;
  }

  .approval-form-body {
    padding: 1.5rem;
  }

  .approval-card-header {
    padding: 1.5rem;
  }

  .approval-card {
    border-radius: 16px;
  }
}
.mobile-nav a.active {
  display: inline-block;
  width: fit-content;
  margin: auto;
}
