:root {
  --brand-red: #8B1A1A;
  --brand-maroon: #4B1D1D;
  --gold: #C9A54A;
  --soft-bg: #FAF3E0;
  --form-bg: #fff;
  --text: #2a2a2a;
  --border: #d6c2a3;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--soft-bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
}

.sidebar {
  background-color: var(--brand-maroon);
  color: white;
  width: 35%;
  min-width: 250px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1rem;
  color: #f4e9d8;
  line-height: 1.6;
  max-width: 260px;
}

.main-content {
  width: 65%;
  padding: 60px 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form {
  background: var(--form-bg);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.form:hover {
  transform: translateY(-3px);
}

.form-heading {
  font-family: var(--font-display);
  color: var(--brand-red);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-subheading {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
}

label {
  display: block;
  margin: 15px 0 6px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 74, 0.25);
  outline: none;
}

button[type="submit"] {
  margin-top: 25px;
  padding: 14px;
  width: 100%;
  background-color: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #b18f3c;
  transform: scale(1.02);
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--brand-maroon);
  margin-top: 30px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-up {
  animation: fadeIn 1s ease-out, slideUp 1s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    align-items: center;
    text-align: center;
    height: auto;
  }

  .main-content {
    width: 100%;
    padding: 30px 20px;
  }

  .form {
    padding: 25px 20px;
  }
}

/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #4B1D1D; /* deep maroon */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-circle {
  border: 6px solid #C9A54A; /* gold */
  border-top: 6px solid transparent;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1.7s linear infinite;
  margin-bottom: 15px;
  box-shadow: 0 0 10px #C9A54A;
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #C9A54A;
  letter-spacing: 3px;
  text-shadow: 0 0 8px #C9A54A;
}

/* Spin Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
