/* Congero Contact Form Styles */
.congero-contact-form {
  /* max-width: 480px; */
  border-radius: 1.2rem;
  padding: 2rem 0rem 1.5rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: inherit;
  --congero-main-color: #fff;
}
.congero-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.congero-contact-form label {
  font-size: 1rem;
  color: var(--congero-main-color);
  font-weight: 500;
  margin-bottom: 0.2rem;
  font-family: 'Open Sans', sans-serif;
}
.congero-contact-form input,
.congero-contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--congero-main-color) !important;
  color: var(--congero-main-color);
  font-size: 1.1rem;
  font-family: var(--font-body) !important;
  padding: 0.5em 0.5em;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.congero-contact-form input:focus,
.congero-contact-form textarea:focus {
  border-bottom: 1px dashed var(--congero-main-color);
}
.congero-contact-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  padding: 0.7em 2.2em;
  font-size: 1.1rem;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: none;
}
.congero-contact-form.light-theme .congero-contact-btn {
  background: #101a3a;
  color: #fff;
}
.congero-contact-form.light-theme .congero-contact-btn:hover {
  background: #1a71af;
  color: #fff;
}
.congero-contact-form.dark-theme .congero-contact-btn {
  background: #fff;
  color: #101a3a;
}
.congero-contact-form.dark-theme .congero-contact-btn:hover {
  background: #1a71af;
  color: #fff;
}
.congero-contact-feedback {
  margin-top: 1.2rem;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.congero-contact-success {
  color: #1ed760;
  font-weight: 600;
}
.congero-contact-error {
  color: #ff3b3b;
  font-weight: 600;
}
.congero-contact-check {
  display: inline-block;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 2px solid #1ed760;
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.4,0,0.2,1);
}
.congero-contact-check:after {
  content: '';
  position: absolute;
  left: 0.55em;
  top: 0.9em;
  width: 0.5em;
  height: 1em;
  border-right: 3px solid #1ed760;
  border-bottom: 3px solid #1ed760;
  transform: rotate(45deg);
  opacity: 1;
  animation: checkMark 0.4s 0.2s cubic-bezier(0.4,0,0.2,1) backwards;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes checkMark {
  0% { height: 0; width: 0; opacity: 0; }
  100% { height: 1em; width: 0.5em; opacity: 1; }
}
@media (max-width: 600px) {
  .congero-contact-form {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}

.congero-contact-socials {
  display: flex;
  gap: 1.2em;
  margin: 1.2em 0 0.5em 0;
  align-items: center;
}
.congero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--congero-main-color);
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
  box-shadow: none;
  width: 2em;
  height: 2em;
  padding: 0;
  font-size: 1.2em;
}
.congero-social-link i {
  color: var(--congero-main-color);
  transition: color 0.2s;
}

/* Ensure social icons respect theme colors */
.congero-contact-form.light-theme .congero-social-link i {
  color: #101a3a !important;
}
.congero-contact-form.light-theme .congero-social-link:hover i{
  color: #fff !important;
}
.congero-contact-form.dark-theme .congero-social-link:hover i{
  color: #101a3a !important;
}

.congero-contact-form.dark-theme .congero-social-link i {
  color: #fff !important;
}
.congero-social-link:hover {
  background: var(--congero-main-color) !important;
  color: var(--congero-main-color) !important;
  border-color: var(--congero-main-color) !important;
}
.congero-contact-form.light-theme .congero-social-link:hover i,
.congero-contact-form.light-theme .congero-social-link:focus i {
  color: #fff;
}
.congero-contact-form.dark-theme .congero-social-link:hover i,
.congero-contact-form.dark-theme .congero-social-link:focus i {
  color: #fff;
}

.congero-contact-actions {
  display: flex;
  align-items: center;
  gap: 2em;
  /* margin-top: 1.2em; */
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .congero-contact-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  .congero-contact-socials {
    margin: 0;
  }
}

.congero-contact-form input::placeholder,
.congero-contact-form textarea::placeholder {
  color: var(--congero-main-color);
  opacity: 0.7;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: var(--font-weight-regular) !important;
}

/* Phone input specific styling */
.congero-contact-form input[type="tel"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.congero-contact-form input[type="tel"]::-webkit-outer-spin-button,
.congero-contact-form input[type="tel"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.congero-contact-form.light-theme {
  --congero-main-color: #101a3a !important;
}

.congero-contact-form.light-theme label,
.congero-contact-form.light-theme input,
.congero-contact-form.light-theme textarea,
.congero-contact-form.light-theme input::placeholder,
.congero-contact-form.light-theme textarea::placeholder {
  color: #101a3a !important;
}

.congero-contact-form.dark-theme {
  --congero-main-color: #fff !important;
}

.congero-contact-form.dark-theme label,
.congero-contact-form.dark-theme input,
.congero-contact-form.dark-theme textarea,
.congero-contact-form.dark-theme input::placeholder,
.congero-contact-form.dark-theme textarea::placeholder {
  color: #fff !important;
}

/* --- CONTACT-US LAYOUT --- */
.congero-contact-form.contact-us-layout {
  background: #f7f8fa;
  border-radius: 2rem;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 2px 16px 0 rgba(16,26,40,0.04);
  color: #101a3a;
  max-width: 900px;
  margin: 0 auto;
}
.congero-contact-form.contact-us-layout label {
  color: #101a3a;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.congero-contact-form.contact-us-layout input,
.congero-contact-form.contact-us-layout textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid #cfd8e3;
  color: #101a3a;
  font-size: 1.08rem;
  font-family: var(--font-body);
  padding: 0.5em 0.5em;
  border-radius: 0;
  transition: border-color 0.2s;
}
.congero-contact-form.contact-us-layout input:focus,
.congero-contact-form.contact-us-layout textarea:focus {
  border-bottom: 2px solid #1a71af;
}
.congero-contact-form.contact-us-layout .congero-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2rem;
}
.congero-contact-form.contact-us-layout .congero-contact-row-full {
  grid-column: 1 / 3;
}
@media (max-width: 700px) {
  .congero-contact-form.contact-us-layout .congero-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
  }
  .congero-contact-form.contact-us-layout .congero-contact-row-full {
    grid-column: 1 / 2;
  }
  .congero-contact-form.contact-us-layout {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
.congero-contact-form.contact-us-layout .congero-contact-btn.contact-us-btn {
  background: #101a3a;
  color: #fff;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.7em 2.2em 0.7em 2.2em;
  display: flex;
  align-items: center;
  gap: 0.7em;
  box-shadow: 0 2px 8px 0 rgba(16,26,40,0.06);
  margin: 2rem 0 0 0;
  transition: background 0.2s, color 0.2s;
}
.congero-contact-form.contact-us-layout .congero-contact-btn.contact-us-btn:hover {
  background: #1a71af;
  color: #fff;
}
.congero-contact-form.contact-us-layout .contact-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e8ef;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  margin-left: 0.5em;
  font-size: 1.1em;
  transition: background 0.2s;
}
.congero-contact-form.contact-us-layout .congero-contact-btn.contact-us-btn:hover .contact-btn-icon {
  background: #fff;
}
.congero-contact-form.contact-us-layout input::placeholder,
.congero-contact-form.contact-us-layout textarea::placeholder {
  color: #b0b8c9;
  opacity: 1;
  font-style: italic;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5em;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Invalid field styles */
.congero-contact-form input.invalid,
.congero-contact-form textarea.invalid {
  border-bottom-color: #ff3b3b !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Enhanced feedback messages */
.congero-contact-feedback {
  margin-top: 1.2rem;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.congero-contact-success {
  color: #1ed760;
  font-weight: 600;
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.2);
}

.congero-contact-error {
  color: #ff3b3b;
  font-weight: 600;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.2);
}

/* Theme-specific text colors for feedback messages */
.congero-contact-form.light-theme .congero-contact-success,
.congero-contact-form.light-theme .congero-contact-error {
  color: #101a3a;
}

.congero-contact-form.dark-theme .congero-contact-success,
.congero-contact-form.dark-theme .congero-contact-error {
  color: #fff;
}

/* Button disabled state */
.congero-contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.congero-contact-btn:disabled:hover {
  background: inherit !important;
  color: inherit !important;
}

/* Additional improvements for better UX */
.congero-contact-form input:focus,
.congero-contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 113, 175, 0.2);
}

/* Better spacing for form rows */
.congero-contact-row {
  margin-bottom: 1rem;
}

.congero-contact-row:last-of-type {
  margin-bottom: 0;
}

/* Improved button styling */
.congero-contact-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.congero-contact-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Better error states */
.congero-contact-form input.invalid,
.congero-contact-form textarea.invalid {
  border-bottom-color: #ff3b3b !important;
  animation: shake 0.5s ease-in-out;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
}

/* Loading state improvements */
.congero-contact-btn:disabled {
  position: relative;
}

.congero-contact-btn:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
} 
