/* Contact Page Styles - Developed according to design drawings */

.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero-section {
  position: relative;
}

.contact-hero-section .contact-container {
  position: relative;
  z-index: 5;
}

.contact-hero-title {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 32px 0;
  padding-top: 260px;
}

.contact-hero-subtitle {
  font-size: 28px;
  margin: 0 0 145px 0;
}

.contact-hero-description {
  font-size: 16px;
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background: url("img/technology/bg3.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.contact-form-section::before {
  content: "CONTACT";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 200px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 20px;
}

.contact-form-section .contact-container {
  position: relative;
  z-index: 1;
}

.contact-form-header {
  margin-bottom: 50px;
}

.contact-form-title {
  font-size: 20px;
  margin: 0 0 16px 0;
}

.contact-form-subtitle {
  font-size: 28px;
  margin: 0 0 16px 0;
}

.contact-form-intro {
  font-size: 16px;
  line-height: 1.6;
}

.contact-message {
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-success-message {
  border: 1px solid rgba(215, 227, 222, 1);
  color: rgba(51, 51, 51, 1);
}

.contact-error-message {
  border: 1px solid rgba(255, 150, 150, 1);
  color: rgba(200, 50, 50, 1);
}

.contact-form-input.error,
.contact-form-select.error,
.contact-form-textarea.error {
  border-color: rgba(255, 150, 150, 1) !important;
}

.contact-form-error-text {
  color: rgba(200, 50, 50, 1);
  font-size: 14px;
  margin-top: 8px;
  display: block;
}

/* Contact Form */
.contact-form {
  padding: 0 120px;
}

.contact-form-row {
  margin-bottom: 30px;
}

.contact-form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.2);
}

.contact-form-label {
  width: 340px;
  font-size: 16px;
}

.required {
  color: rgba(255, 0, 0, 1);
  font-size: 14px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: calc(100% - 580px);
  padding: 12px 16px;
  border: 1px solid rgba(234, 235, 235, 1);
  background: rgba(234, 235, 235, 1);
  border-radius: 6px;
  font-size: 16px;
  font-family: "Source Han Sans JP", sans-serif;
  font-weight: normal;
  color: rgba(51, 51, 51, 1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

/* Placeholder style - Ensure consistent placeholder font styles for all form elements */
.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  font-family: "Source Han Sans JP", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: rgba(150, 150, 150, 1);
  opacity: 1;
}

/* Placeholder style - Compatible with different browser placeholder styles */
.contact-form-input::-webkit-input-placeholder,
.contact-form-textarea::-webkit-input-placeholder {
  font-family: "Source Han Sans JP", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: rgba(150, 150, 150, 1);
}

.contact-form-input::-moz-placeholder,
.contact-form-textarea::-moz-placeholder {
  font-family: "Source Han Sans JP", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: rgba(150, 150, 150, 1);
  opacity: 1;
}

.contact-form-input:-ms-input-placeholder,
.contact-form-textarea:-ms-input-placeholder {
  font-family: "Source Han Sans JP", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: rgba(150, 150, 150, 1);
}

.contact-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23333' stroke-width='1.5' str oke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
  cursor: pointer;
  position: relative;
}

.contact-form-select:hover {
  border-color: rgba(200, 200, 200, 0.8);
}

.contact-form-select:focus {
  border-color: rgba(51, 51, 51, 0.5);
  background-color: rgba(255, 255, 255, 1);
}

/* Select option style */
.contact-form-select option {
  padding: 12px 16px;
  background-color: rgba(226, 227, 227, 1);
  color: rgba(102, 102, 102, 1);
  font-size: 16px;
  line-height: 1.6;
}

.contact-form-select option:hover {
  background-color: rgba(240, 240, 240, 1);
}

.contact-form-select option:checked {
  background-color: rgba(240, 240, 240, 1);
  font-weight: 500;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.contact-form-hint {
  font-size: 13px;
  color: rgba(150, 150, 150, 1);
  line-height: 1.5;
  margin-top: 4px;
}

.contact-form-submit {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 25px;
  border-radius: 38px;
  background-color: rgba(255, 255, 255, 1);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit-btn:hover {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.contact-submit-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
  transform: translateY(2px);
}

/* Footer Info Section */
.contact-footer-info {
  padding: 80px 0 100px;
  background-color: rgba(61, 61, 61, 1);
  color: #fff;
}

.contact-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-footer-column-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px 0;
  line-height: 1.4;
  text-align: center;
}

.contact-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 22px 70px;
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.contact-footer-list li {
  font-size: 16px;
  line-height: 1.8;
  position: relative;
}

.contact-footer-list li::before {
  content: "・";
  position: absolute;
  left: -20px;
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  line-height: 1.6;
}

.contact-footer-column:first-child .contact-footer-list {
  padding: 37px;
}

.contact-footer-list li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .contact-hero-title {
    font-size: 32px;
    padding-top: 120px;
  }

  .contact-hero-subtitle {
    font-size: 22px;
    margin-bottom: 80px;
  }

  .contact-form-section::before {
    font-size: 80px;
  }

  .contact-form {
    padding: 0 20px;
  }

  .contact-form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-form-label {
    width: 100%;
  }

  .contact-form-input,
  .contact-form-select,
  .contact-form-textarea {
    width: 100%;
  }

  /* Footer Grid */
  .contact-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-footer-list {
    padding: 22px 20px;
  }

  .contact-footer-column:first-child .contact-footer-list {
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  .contact-hero-title {
    font-size: 28px;
  }

  .contact-hero-subtitle {
    font-size: 20px;
  }

  .contact-form-section::before {
    font-size: 60px;
  }
}