:root {
  --primary-red: #C8102E;
  --dark-red: #8B0000;
  --gradient-red: linear-gradient(135deg, #C8102E, #E63946);
  --bg-dark: linear-gradient(135deg, #8B0000, #450a0a);
  --white: #FFFFFF;
  --dark-text: #0f172a;
  --secondary-text: #64748b; 
  --placeholder: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(0, 0, 0, 0.05);
  --input-bg: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  background: var(--bg-dark);
  overflow-x: hidden;
  animation: fadeIn 0.8s ease-out;
}

.banner-section {
  flex: 3;
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .banner-section::before removed as per user request to remove overlay */

.banner-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.banner-content {
  position: absolute;
  left: 10%;
  z-index: 2;
  max-width: 600px;
}

.banner-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-section {
  flex: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 2rem;
  z-index: 10;
  overflow-y: auto;
}

.glass-card {
  width: 100%;
  max-width: 540px; 
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.header {
  margin-bottom: 1rem; 
  text-align: center;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
}

.header p {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-wrapper {
  position: relative;
}

.floating-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 1rem 0.7rem 3rem; 
  color: var(--dark-text);
  font-size: 1rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.floating-label {
  position: absolute;
  left: 3rem; 
  top: 50%;
  transform: translateY(-50%);
  color: var(--placeholder);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 0 4px;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  top: 0;
  left: 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  background: var(--white);
  transform: translateY(-50%);
}


.floating-input:focus {
  border-color: var(--primary-red);
  background: var(--white);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.08); 
}

.floating-input.error {
  border-color: #ef4444 !important;
  background: #fffafa;
}

.icon {
  position: absolute;
  left: 1.2rem; 
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Custom Select Specifics */
.select-box {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  z-index: 100;
  margin-top: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  display: none; /* Controlled by JS */
  flex-direction: column;
  overflow: hidden;
}

.select-dropdown.open {
  display: flex;
}

.search-container {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
}

.search-input {
  padding: 6px 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  color: var(--dark-text);
}

.options-list {
  overflow-y: auto;
}

.option-item {
  padding: 12px 15px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  color: var(--dark-text);
}

.option-item:hover {
  background: #f8fafc;
}

.option-item.selected {
  background: rgba(200, 16, 46, 0.05);
  color: var(--primary-red);
}

.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 0;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  background: var(--gradient-red);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px -5px rgba(200, 16, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(200, 16, 46, 0.6);
}

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

.submit-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.animate-spin {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.success-container {
  display: none; /* Toggle via JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-icon-wrap {
  background: rgba(200, 16, 46, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@media (max-width: 1024px) {
  .page-wrapper {
    flex-direction: column;
  }
  .banner-section {
    height: auto;
    aspect-ratio: 16/9;
    flex: none;
    display: block;
  }
  .banner-picture, .banner-image {
    position: relative;
    height: auto;
    width: 100%;
    display: block;
  }
  .banner-content h2 {
    font-size: 2rem;
  }
  .form-section {
    padding: 2rem 1rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
}
