/*
Theme Name:   Solaris Child
Description:  Solaris Child Theme
Author:       ESTH Team
Template:     solaris_tcd088
Version:      2.1.3
*/

#cb_content_1.cb_free_space {
  background-image: url(https://www.e-stag-e.info/heads/wp-content/uploads/2025/09/aboutus_bg-scaled.jpg);
  width: auto;
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
}

/* ======================= Contact form =================================== */
.wpcf7 form {
  margin: 0 !important;
}

.wpcf7 {
  border: none !important;
  background: transparent !important;
}

.wpcf7-form span.requied {
  display: inline-block;
  background-color: #ff4d4d;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 5px;
}

.wpcf7-form table {
  border-spacing: 5px;
  border-collapse: separate !important;
}

.wpcf7-form table th {
  padding: 1em !important;
  background-color: #efefef;
  border: none !important;
  width: 14em;
  vertical-align: middle;
  line-height: 1.5;
  text-align: left;
}

.wpcf7-form table th p {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.wpcf7-form table td {
  padding: 1em !important;
  background-color: #fafafa;
  border: none !important;
}

.wpcf7-form-control {
  width: 100%;
}

.cf7-two-column {
  display: grid;
  gap: 15px;
}

.cf7-row {
  display: grid;
  grid-template-columns: 180px 1fr; /* label fixed width, input flexible */
  align-items: center;
}

.cf7-row label {
  text-align: right;
  padding-right: 10px;
  font-weight: bold;
}

.cf7-row input,
.cf7-row select,
.cf7-row textarea,
.cf7-row [type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.cf7-row textarea {
  min-height: 100px;
}

.submit-row {
  grid-column: 2;
  text-align: left;
}

.wpcf7 .wpcf7-submit {
  background-color: rgba(0, 60, 150, 1) !important;
  font-weight: 600;
}

.wpcf7 .wpcf7-submit:hover {
  background-color: #0050d0 !important;
}

@media (max-width: 750px) {
  /* เปลี่ยนตารางให้กลายเป็นบล็อกธรรมดา */
  .wpcf7-form table,
  .wpcf7-form fieldset,
  .wpcf7-form tbody,
  .wpcf7-form tr,
  .wpcf7-form th, 
  .wpcf7-form td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* จัดระยะห่างระหว่างช่อง */
  .wpcf7-form td {
    padding: 10px 0 !important;
    border: none !important;
  }

  /* ทำให้ Label และ Input อยู่คนละบรรทัด */
  .wpcf7-form br {
    display: none; /* ลบการเว้นบรรทัดแบบเก่าออก */
  }
}

/* ========================================================================= */

/*Edit design for News list by AM ESTH 180925*/
.news_bg {
  background: #b4d5e8;
}
.news_bg .design_button {
  padding: 70px 70px;
}
.cb_news_list {
  border-left: none;
  border-right: none;
  padding: 90px 130px 20px;
}
.news_list .item {
  background: #f2f2f2;
  border-radius: 10px;
  height: 60px;
  border: 1px solid #f6f6f6;
  margin: 0 0 10px 0;
}
@media screen and (max-width: 750px) {
  .news_list .item {
    margin: 10px 10px -1px 10px !important;
    padding: 20px 20px 20px 15px !important;
  }
}

/* ======================================= Single-company ====================================== */
/* ESTH Franky 2025-09-18 */
.single-company #main_contents.single_col #main_col {
  max-width: unset;
}
/* ============================================================================================ */

/* ================================== Single (Recruit) ============================================== */
/* Remove the side bar line */
/* .single-post #main_contents:after {
  display: none;
}
.single-post #main_contents #main_col {
  width: 100%;
} */
/* ======================================================================================================== */
