/* contactページ専用スタイル（authページと同じデザイン） */

.contact-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 60px auto 0 auto;
}

/* iPhone Safari専用の中央配置修正 */
@media (max-width: 1080px) {
  .contact-box {
    /* 基本は変更せず、iOSでのみ修正 */
    margin-left: auto;
    margin-right: auto;
  }
}

/* iOS Safari専用の対策 */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 1080px) {
    .contact-box {
      position: relative;
      left: 50%;
      transform: translateX(-50%);
      margin-left: 0;
      margin-right: 0;
    }
  }
}

.contact-box h1 {
  text-align: center;
  color: #2d3748;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

textarea.form-input {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-input::placeholder {
  color: #a0aec0;
  font-size: 14px;
}

.contact-submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-align: center;
  display: block;
  text-decoration: none;
}
.contact-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 55, 72, 0.3);
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}
.contact-submit-button:active {
  transform: translateY(0);
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c6f6d5, #bee3f8);
  color: #2d3748;
  border: 1px solid #68d391;
  font-weight: 600;
  text-align: center;
}

.validation-errors {
  margin-bottom: 25px;
}

.error-message {
  color: #e53e3e;
  font-weight: 600;
  background: linear-gradient(135deg, #fed7d7, #fbb6ce);
  border: 1px solid #fc8181;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 14px;
}
