:root {
  --primary-color: #6d58cb;
  --success-color: #4625c9;
  --light-gray: #f4f4f9;
  --dark-text: #333;
  --light-text: #fff;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
}

/* --- HEADING STYLES (Explicit Definition) --- */
/* Fixes Lighthouse warning: H1UserAgentFontSizeInSection */
/* Remove reliance on browser default heading styles */

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: clamp(1.2, 6vw, 1.3);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem) 0;
  font-weight: 700;
  color: var(--dark-text);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.75rem, 1.5vw, 1.25rem) 0;
  font-weight: 700;
  color: var(--dark-text);
}

h3 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.35;
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(0.5rem, 1vw, 1rem) 0;
  font-weight: 700;
  color: var(--dark-text);
}

/* Ensure headings in semantic containers don't rely on user-agent defaults */
section h1,
section h2,
section h3,
article h1,
article h2,
article h3,
main h1,
main h2,
main h3 {
  font-size: inherit;
  line-height: inherit;
  margin: inherit;
  font-weight: 700;
  color: var(--dark-text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.header {
  background: var(--light-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
  background-color: #5a48a9;
}

.btn-success {
  background-color: var(--success-color);
}

.btn-success:hover {
  background-color: #3a1d9e;
}

.btn-large {
  font-size: 1.1rem;
  padding: 15px 30px;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--light-text);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 80px 20px;
  background-color: var(--light-gray);
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* --- NEW: How It Works Section --- */
.how-it-works-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.how-it-works-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
}

.step-card {
  background: var(--light-gray);
  padding: 40px 30px 30px 30px;
  border-radius: 10px;
  position: relative;
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* --- NEW: Contact Form Section --- */
.contact-section {
  padding: 80px 20px;
  background-color: #fff;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-subtitle {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-text);
}

.input-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(109, 88, 203, 0.4);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
}

select.input-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.contact-button-wrapper {
  text-align: left;
  margin-top: 20px;
}

.contact-info-container h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-resources-title {
  margin-top: 30px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  background: var(--light-gray);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--dark-text);
}

.contact-info-list li i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-info-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

/* Notification Styles */
.notification-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: var(--light-text);
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification-popup.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-popup.success {
  background-color: var(--success-color);
}

.notification-popup.info {
  background-color: #2196f3;
}

.notification-popup.error {
  background-color: #f44336;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-button-wrapper {
    text-align: center;
  }
}

/* ===== NEW CREDENTIALS SECTION STYLES ===== */
.credentials-container {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.credentials-container h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.credentials-container p {
  margin-bottom: 20px;
  color: #555;
  padding-left: 5px;
}

.credentials-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.credentials-table th,
.credentials-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.credentials-table th {
  background-color: #4a3a9a;
  color: var(--light-text);
  font-weight: 600;
}

.credentials-table td {
  background-color: #fff;
}

.credentials-table tr:last-child td {
  border-bottom: none;
}

.credentials-table code {
  background: #e7e4f3;
  padding: 3px 6px;
  border-radius: 4px;
  color: #333;
}