/* Contact pages */

/* =========================
       Contact - 공통 모달
       ========================= */
    .modal{
      position:fixed;
      z-index:999;
      left:0;
      top:0;
      width:100%;
      height:100%;
      background:rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s ease;
    }

    .modal.show {
      opacity: 1;
      visibility: visible;
    }

    .modal-content{
      background:#fff;
      margin:80px auto;
      padding:30px 40px;
      width:80%;
      max-width:800px;
      border-radius:10px;
      position:relative;
      overflow: hidden;
    }

    .modal-header{
      display:flex;
      justify-content:space-between;
      align-items:center;
    }

    .modal-close{
      font-size:32px;
      cursor:pointer;
      border: 0;
      background: transparent;
      color: #333;
    }

    .modal-body{
      max-height:600px;
      overflow-y:auto;
      box-sizing:border-box;
    }

    .modal-body p {
      font-size:18px;
      font-weight:600;
    }

/* =========================
       Contact - 문의 폼
       ========================= */

    .contact-form {
      max-width: 800px;
      margin: 3rem auto 0;
      border:1px solid #ddd;
      border-radius:10px;
      padding:1.8rem;
      background:#fff;
      text-align:left;
    }

    .contact-info {
      max-width: 800px;
      margin: 3rem auto 0;
      text-align: left;
    }

    .inquiry-info dl {
      margin: 2rem 0;
    }

    .inquiry-info dl div {
      display: grid;
      grid-template-columns: 70px 1fr;
      padding: 0.8rem 0;
      border-bottom: 1px solid #eee;
    }

    .inquiry-info dt {
      font-weight: 700;
    }

    .inquiry-info dd {
      margin: 0;
      color: #555;
    }

    .contact-form-description {
      margin: 0.7rem 0 0;
      color: #666;
    }

    .contact-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }

    .form-field {
      margin-bottom: 1.1rem;
    }

    .form-field label {
      display: block;
      margin-bottom: 0.55rem;
      color: #333;
      font-weight: 600;
    }

    .form-field label span {
      color: #d84333;
    }

    .form-field label small {
      color: #777;
      font-size: 0.85rem;
      font-weight: 400;
    }

    .contact-form input:not([type="checkbox"]),
    .contact-form select,
    .contact-form textarea {
      width:100%;
      padding:0.9rem 1rem;
      border:1px solid #ddd;
      border-radius:8px;
      box-sizing: border-box;
      background: #fff;
      color: #333;
      font: inherit;
    }

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
      outline: 2px solid rgba(216, 67, 51, 0.2);
      border-color: #d84333;
    }

    .contact-form textarea {
      height: 200px;
      padding-bottom: 2.4rem;
      resize: none;
    }

    .textarea-wrap {
      position: relative;
    }

    .char-counter {
      position: absolute;
      right: 0.9rem;
      bottom: 0.8rem;
      margin: 0;
      font-size: 0.8rem;
      color: #777;
      background: rgba(255,255,255,0.9);
      padding: 0.1rem 0.2rem;
      border-radius: 6px;
    }

    .privacy-consent {
      display: flex;
      align-items: flex-start;
      gap: 0.65rem;
      margin: 0.4rem 0 1.5rem;
      color: #555;
      font-size: 0.95rem;
      cursor: pointer;
    }

    .privacy-consent input {
      width: 18px;
      height: 18px;
      margin: 0.1rem 0 0;
      accent-color: #d84333;
      flex: 0 0 auto;
    }

/* =========================
       Contact - reCAPTCHA
       ========================= */

    .form-note {
      margin: 0.8rem 0 1rem;
      font-size: 0.8rem;
      color: #666;
      line-height: 1.5;
    }

    .form-note a {
      color: #666;
    }

    .recaptcha-modal-content {
      max-width: 400px;
      margin: 160px auto;
      text-align: center;
    }

    .recaptcha-modal-body {
      padding-top: 0.5rem;
    }

    .recaptcha-modal-body p {
      font-size: 0.8rem;
      font-weight: 500;
      color: #444;
      margin-bottom: 1rem;
    }


    .recaptcha-widget-wrap {
      display: flex;
      justify-content: center;
      margin-bottom: 1rem;
    }

    .recaptcha-actions {
      display: flex;
      gap: 0.8rem;
      justify-content: center;
    }

    .recaptcha-actions button {
      min-width: 120px;
      border: none;
      border-radius: 8px;
      padding: 0.8rem 1rem;
      cursor: pointer;
      font-weight: 600;
    }

    .recaptcha-cancel {
      background: #eee;
      color: #333;
    }

    .recaptcha-confirm {
      background: #e74c3c;
      color: #fff;
    }

    .recaptcha-confirm:disabled {
      background: #f0a39b;
      cursor: not-allowed;
    }

    .contact-form button {
      background:#e74c3c;
      color:#fff;
      border:none;
      padding:0.9rem;
      border-radius:8px;
      cursor:pointer;
      width:100%;
      transition: background-color 0.2s ease;
      font-weight: 600;
    }

    .contact-form button:hover {
      background: #d84333;
    }

    .contact-form button:disabled {
      background: #dd2222;
      cursor: not-allowed;
      opacity: 0.7;
    }

    .form-status {
      margin: 1rem 0 0;
      padding: 0.8rem 1rem;
      border: 1px solid transparent;
      border-radius: 8px;
      font-size: 1rem;
      line-height: 1.5;
    }

    .form-status.is-info {
      border-color: #b9d8ed;
      background: #f1f8fc;
      color: #245b7a;
    }

    .form-status.is-success {
      border-color: #b8d9c1;
      background: #f2faf4;
      color: #276738;
    }

    .form-status.is-error {
      border-color: #efc2bd;
      background: #fff5f4;
      color: #a12d24;
    }

.intro-contact { --intro-image: url("/img/intro/Intro_Contact.webp"); }

@media (max-width: 700px) {
  .contact-form-grid {
  grid-template-columns: 1fr;
  gap: 0;
  }
}
