/* ===============================
   CONTACT PAGE - CLEAN UI
=============================== */

.contact-container {
  max-width: 650px;
  margin: 20px auto;
  padding: 20px;
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: 35px;
}

.contact-header h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--logo-color);
}

.contact-header p {
  color: #6b7280;
  /* Subtle grey for subtitle */
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Form Box - Clean, white card with a soft, elegant shadow */
.contact-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: 0.3s ease;
}

/* Section title - Darker for balance */
.contact-box h3 {
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: #1a1a1a;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
}

/* Labels - Dark grey is much easier to read */
.form-group label {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black-color);
}

/* Inputs - Clean, outlined, modern */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  /* Subtle grey border */
  background: #ffffff;
  /* White background */
  color: #1a1a1a;
  /* Dark text when typing */
  outline: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

/* Focus effect - Turns brand green ONLY when the user clicks to type */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--logo-color);
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--logo-color);
  /* Standard light grey */
  opacity: 1;
}

/* Textarea specific */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */
.btn-submit {
  margin-top: 10px;
  padding: 14px;
  background: var(--logo-color);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--white-color, #ffffff);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Button hover */
.btn-submit:hover {
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Success message - Clean, modern alert style */
.success-msg {
  margin-top: 15px;
  color: #065f46;
  background: #d1fae5;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #a7f3d0;
}

/* The red asterisk for required fields */
.required-star {
  color: red;
  font-weight: bold;
  margin-left: 3px;
}

/* The footer container under the message box */
.message-footer {
  display: flex;
  align-items: flex-start;
  margin-top: 4px;
  min-height: 20px;
}

/* The layout for the 0/500 text under the message box */
.char-counter-container {
  font-size: 0.85em;
  color: #666;
  margin-top: 0;
  margin-bottom: 0;
  /* THIS IS THE MAGIC TRICK: 'auto' pushes it all the way right! */
  margin-left: auto;
}

/* The red warning text when they get close to 500 characters */
.char-warning {
  color: red;
  font-weight: bold;
}

/* The red validation error text */
.validation-error {
  display: none;
  color: red;
  font-size: 0.85em;
  font-weight: 500;
  /* Adds a tiny gap on top so it doesn't touch the email box */
  margin: 4px 0 0 0;
}

/* ===============================
   RESPONSIVE FIXES
=============================== */

@media (max-width: 768px) {
  .contact-container {
    margin: 30px auto;
    padding: 15px;
  }

  .contact-box {
    padding: 24px;
  }

  .contact-header h2 {
    font-size: 1.8rem;
  }

  .contact-header p {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .btn-submit {
    padding: 12px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .contact-container {
    margin: 20px auto;
  }

  .contact-header h2 {
    font-size: 1.6rem;
  }

  .contact-box {
    padding: 20px;
    border-radius: 12px;
  }
}

/* ===============================
   CUSTOM MODAL POPUP
=============================== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.custom-modal-box {
  background: #ffffff;
  color: #333;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-icon-circle {
  width: 60px;
  height: 60px;
  background-color: #e8f5e9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.modal-icon-circle i {
  color: #4CAF50;
  font-size: 30px;
}

.custom-modal-box h3 {
  margin: 0 0 10px 0;
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: bold;
}

.custom-modal-box p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 1rem;
}

.btn-modal-ok {
  background: #388E3C;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.btn-modal-ok:hover {
  background: #2E7D32;
}

.server-error {
  color: red;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}
