/* ABR Gov Portal Frontend Styling - Elegant Administrative Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

.abr-gov-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  font-family: 'Playfair Display', Georgia, serif;
  border: 2px solid #002d72;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-sizing: border-box;
}

.abr-gov-section *,
.abr-gov-section *::before,
.abr-gov-section *::after {
  box-sizing: border-box;
}

.abr-gov-header {
  background: #002d72;
  color: #ffd700;
  padding: 24px 30px;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 3px;
  margin-bottom: 35px;
  border-left: 10px solid #ffd700;
  box-shadow: 0 4px 10px rgba(0, 45, 114, 0.15);
  border-radius: 0 4px 4px 0;
  text-align: left;
}

.abr-gov-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* News Section */
.abr-gov-news {
  flex: 1 1 500px;
  position: relative;
  height: 480px; /* Aligns with the height of the enquiry form */
  overflow: hidden;
}

.abr-gov-news-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.abr-gov-news .no-news {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abr-gov-item {
  padding: 24px;
  border: 1px solid #e9ecef;
  background: #ffffff;
  display: flex;
  gap: 25px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.abr-gov-item:hover {
  background: #fbfcfe;
  border-color: #ccd9e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 45, 114, 0.05);
}

.abr-gov-item.no-news {
  justify-content: center;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  font-size: 0.95rem;
  padding: 40px 20px;
  border-style: dashed;
}

.abr-gov-date {
  background: #002d72;
  color: #ffd700;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  min-width: 70px;
  border-radius: 4px;
  line-height: 1.3;
  box-shadow: 0 3px 6px rgba(0, 45, 114, 0.2);
  letter-spacing: 0.5px;
}

.abr-gov-news-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
}

.abr-gov-news-content strong {
  font-family: 'Playfair Display', serif;
  color: #002d72;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

/* Enquiry Form Styling - Colorful premium layout */
.abr-gov-form {
  flex: 1 1 400px;
  background: linear-gradient(135deg, #002d72 0%, #001f5c 100%);
  padding: 35px;
  border: 2px solid #ffd700;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 45, 114, 0.25);
  color: #ffffff;
}

.abr-gov-form-title {
  margin-top: 0;
  margin-bottom: 25px;
  color: #ffd700;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 12px;
  letter-spacing: 1.5px;
  text-align: center;
}

.abr-gov-form-group {
  margin-bottom: 18px;
}

.abr-gov-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

.abr-gov-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.abr-gov-input:focus {
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

select.abr-gov-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffd700'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select.abr-gov-input option {
  background: #001f5c;
  color: #ffffff;
}

/* Submit Button & Animations */
.abr-gov-btn {
  background: linear-gradient(90deg, #d32f2f 0%, #c0392b 100%);
  color: #ffffff;
  padding: 16px;
  width: 100%;
  border: 1px solid #ffd700;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.abr-gov-btn:hover {
  background: linear-gradient(90deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
  transform: translateY(-2px);
  border-color: #ffffff;
}

.abr-gov-btn:active {
  transform: translateY(0);
}

.abr-gov-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Loading Spinner animation */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: abr-spin 1s ease-in-out infinite;
}

@keyframes abr-spin {
  to { transform: rotate(360deg); }
}

/* Success & Error Message Boxes */
.abr-gov-alert {
  padding: 15px 18px;
  margin-bottom: 22px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 5px solid;
}

.abr-gov-alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #059669;
}

.abr-gov-alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .abr-gov-flex {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .abr-gov-section {
    padding: 20px 15px;
    margin: 20px auto;
  }
  .abr-gov-header {
    font-size: 1.25rem;
    padding: 18px 20px;
    margin-bottom: 25px;
  }
  .abr-gov-item {
    gap: 15px;
    padding: 16px;
  }
  .abr-gov-date {
    min-width: 60px;
    padding: 8px;
    font-size: 0.8rem;
  }
  .abr-gov-form {
    padding: 20px;
  }
}
