/* =====================================================
   CONTACT PAGE — STANDALONE STYLESHEET
   Author: Parsa Meshkini
   ===================================================== */

/* ====== ROOT VARIABLES ====== */
:root {
  --bg: #0f1720;
  --card: #0f1a16;
  --accent: #16a34a;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --border: rgba(255, 255, 255, 0.1);
  --text: #e6eef6;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* ====== PAGE LAYOUT ====== */
.landing_page {
  position: relative;
  padding: 60px 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing_page .big-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.landing_page .container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-height: 600px; /* keeps both sides equal */
}

/* ====== LEFT INFO SECTION ====== */
.left-one {
  background: linear-gradient(160deg, rgba(22,163,74,0.15), rgba(15,23,32,0.9));
  padding: 40px;
  color: var(--text);
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.section-head {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-subhead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: justify;
}

.icons-container {
  display: flex;
  gap: 22px;
}

.icons-container a {
  color: var(--accent);
  font-size: 26px;
  transition: color 0.3s, transform 0.3s;
}

.icons-container a:hover {
  color: #22c55e;
  transform: scale(1.2);
}

/* ====== RIGHT FORM SECTION ====== */
.form-box {
  flex: 1 1 50%;
  padding: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.container-block.form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.input,
.textinput {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

/* ✅ FIXED HEIGHT MESSAGE BOX */
.textinput {
  height: 150px;           /* fixed height */
  resize: none;            /* disable manual resizing */
  overflow-y: auto;        /* scrollbar if text overflows */
}

/* focus state */
.input:focus,
.textinput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(22,163,74,0.3);
  outline: none;
}

/* ====== BUTTON & LOADER ====== */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg,var(--accent),#10b981);
  color: #042017;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: linear-gradient(90deg,#22c55e,#16a34a);
}

/* Loader animation */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar {
  display: inline-block;
  width: 3px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}

.bar:nth-child(2) {
  height: 20px;
  margin: 0 5px;
  animation-delay: 0.25s;
}

.bar:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes scale-up4 {
  20% {
    background-color: #fff;
    transform: scaleY(1.5);
  }
  40% {
    transform: scaleY(1);
  }
}

/* ====== BACK TO HOME BUTTON ====== */
.btn-back-home {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--accent), #10b981);
  color: #042017;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-back-home:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(22, 163, 74, 0.3);
}

/* Desktop button */
.back-home-desktop {
  display: block;
  margin-top: 40px;
}

/* Mobile version (hidden by default) */
.back-home-mobile {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.back-home-text {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.back-home-text:hover {
  color: var(--accent);
}

/* ====== TOAST NOTIFICATION ====== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000;
  font-weight: 600;
  border: 1px solid var(--border);
}

.toast.success {
  border-left: 5px solid var(--accent);
}

.toast.error {
  border-left: 5px solid #ef4444;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 950px) {
  .landing_page header {
    display: none !important;
  }

  .landing_page .container {
    flex-direction: column;
    min-height: auto;
  }

  .left-one, .form-box {
    flex: 1 1 100%;
    padding: 30px;
  }

  .section-head {
    text-align: center;
  }

  .icons-container {
    justify-content: center;
  }

  .back-home-desktop {
    display: none !important;
  }

  .back-home-mobile {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .toast {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    font-size: 14px;
    padding: 12px 18px;
    text-align: center;
  }
}
.textinput {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.textinput::-webkit-scrollbar {
  width: 8px;
}

.textinput::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
@media (max-width: 1050px) {
  .left-one {
    padding: 30px;
  }
  .form-box {
    padding: 30px;
  }
}
/* ================================
   SCROLLBAR — THEME MATCHED
   ================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--accent),
    #10b981
  );
  border-radius: 10px;
  border: 2px solid var(--bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #22c55e,
    var(--accent)
  );
}

@media (max-width: 360px) {
  .content-box {
    scale: 0.86;
  }

}

