/* CSS Variables & Reset */
:root {
  /* Green Theme for Sir Africa */
  --primary-color: #166534; /* Deep Green (Forest) */
  --primary-light: #22c55e; /* Vibrant Green (Emerald) */
  --secondary-color: #fca5a5; /* Subtle accent (optional) or kept neutral */
  --accent-color: #15803d;

  --background-color: #f0fdf4; /* Very light green tinted bg */
  --surface-color: #ffffff;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --focus-ring: rgba(22, 101, 52, 0.25);

  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--background-color);
  background-image: radial-gradient(#dcfce7 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Main Layout Container (Split Screen) */
.container {
  width: 100%;
  max-width: 1200px;
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  min-height: 650px;
}

/* Left Side: Visual/Graphics */
.visual-side {
  flex: 4; /* 40% width */
  background-color: white;
  /* Professional IT/Tech Image */
  background-position: center;
  color: black;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.visual-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.visual-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 300px;
}

.visual-footer {
  margin-top: auto;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 40px;
}

/* Right Side: Form */
.form-side {
  flex: 6; /* 60% width */
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 90vh; /* Scroll inside form if needed on small screens */
}

/* Header inside form */
.form-header {
  text-align: left;
  margin-bottom: 30px;
}

.form-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  flex: 2;
  box-shadow: 0 4px 6px -1px rgba(22, 101, 52, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(22, 101, 52, 0.4);
}

.btn-secondary {
  background-color: white;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  flex: 1;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

/* Footer (Zoho Branding) */
.zoho-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
}

.powered-by img {
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.powered-by img:hover {
  opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    min-height: auto;
    border-radius: var(--radius-md);
  }

  .visual-side {
    padding: 30px;
    min-height: 200px;
  }

  .visual-content h2 {
    font-size: 1.8rem;
  }

  .form-side {
    padding: 30px 24px;
    max-height: none;
  }
}
