/* ===== Contact Form – Modern Redesign ===== */

/* Card wrapper */
.contact-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Red accent header bar */
.contact-card__header {
  background: linear-gradient(135deg, #d31820 0%, #a8111a 100%);
  padding: 2rem 2.25rem;
  color: #fff;
}
.contact-card__header h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.contact-card__header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Form body */
.contact-card__body {
  padding: 2rem 2.25rem 2.5rem;
}

/* Floating-label groups */
.contact-field {
  position: relative;
  margin-bottom: 1.5rem;
}
.contact-field label {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  color: #9e9e9e;
  pointer-events: none;
  transition: all 0.2s ease;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #f9f8f6;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 1.15rem 1rem 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #d31820;
  box-shadow: 0 0 0 3px rgba(211, 24, 32, 0.1);
  background: #fff;
}

/* Float label up when focused or filled */
.contact-field input:focus + label,
.contact-field input:not(:placeholder-shown) + label,
.contact-field textarea:focus + label,
.contact-field textarea:not(:placeholder-shown) + label {
  top: 0.25rem;
  font-size: 0.72rem;
  color: #d31820;
  font-weight: 600;
}

/* Validation error state */
.contact-field .error-message {
  display: block;
  font-size: 0.8rem;
  color: #d31820;
  margin-top: 0.3rem;
  min-height: 1.1em;
}
.form-floating .error-message {
  display: block;
  position: static;
  margin-top: 0.35rem;
  min-height: 1.1em;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #d31820;
}
.contact-field input.error,
.contact-field textarea.error {
  border-color: #d31820;
}
.form-floating input.error,
.form-floating textarea.error {
  border-color: #d31820;
}

/* Submit button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d31820 0%, #a8111a 100%);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.contact-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211, 24, 32, 0.3);
}
.contact-submit-btn:active {
  transform: translateY(0);
}

/* Success / error messages */
#successMessage {
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
#successMessage:not(:empty) {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Info sidebar */
.contact-info-box {
  background: #f9f8f6;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-info-item .ci-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(211, 24, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d31820;
  font-size: 1rem;
}
.contact-info-item .ci-text {
  font-family: Montserrat, sans-serif;
  font-size: 0.9rem;
  color: #616161;
  line-height: 1.5;
}
.contact-info-item .ci-text strong {
  color: #333;
}

/* Responsive */
@media (max-width: 767px) {
  .contact-card__header,
  .contact-card__body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .contact-info-box {
    margin-top: 1.5rem;
  }
}
