// main: ../main.scss
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {

  // Contact Info Boxes
  .contact-info-box {
    background-color: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .icon-box {
      background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
      color: var(--accent-color);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      i {
        font-size: 24px;
      }
    }

    .info-content {
      h4 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
      }

      p {
        margin-bottom: 5px;
        color: color-mix(in srgb, var(--default-color), transparent 20%);
        font-size: 15px;
        line-height: 1.5;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }

  // Map Section (Full Width)
  .map-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;

    iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }
  }

  // Form Container Overlap
  .form-container-overlap {
    position: relative;
    margin-top: -150px;
    margin-bottom: 60px;
    z-index: 10;
  }

  // Contact Form
  .contact-form-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;

    h2 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 30px;
      position: relative;

      &:after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--accent-color);
      }
    }

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

      .input-with-icon {
        position: relative;

        i {
          position: absolute;
          left: 15px;
          top: 50%;
          transform: translateY(-50%);
          color: color-mix(in srgb, var(--default-color), transparent 40%);
          font-size: 18px;
          z-index: 10;

          &.message-icon {
            top: 28px;
          }
        }

        textarea+i {
          top: 25px;
          transform: none;
        }

        .form-control {
          border-radius: 8px;
          padding: 12px 15px 12px 45px;
          height: calc(3.5rem);
          color: var(--default-color);
          background-color: var(--surface-color);
          font-size: 15px;
          border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);

          &:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--accent-color), transparent 90%);
          }

          &::placeholder {
            color: color-mix(in srgb, var(--default-color), transparent 40%);
          }
        }

        textarea.form-control {
          height: 180px;
          resize: none;
          padding-top: 15px;
        }
      }
    }

    .btn-submit {
      background-color: var(--accent-color);
      border: none;
      color: var(--contrast-color);
      padding: 12px 30px;
      font-size: 16px;
      font-weight: 600;
      letter-spacing: 1px;
      border-radius: 8px;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 70%);

      &:hover {
        background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 60%);
      }

      &:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px color-mix(in srgb, var(--accent-color), transparent 70%);
      }
    }

    // Form status messages
    .loading,
    .error-message,
    .sent-message {
      margin-top: 10px;
      margin-bottom: 20px;
    }
  }

  // Responsive styles
  @media (max-width: 992px) {
    .form-container-overlap {
      margin-top: -120px;
    }

    .contact-form-wrapper {
      padding: 30px;
    }
  }

  @media (max-width: 768px) {
    .contact-info-box {
      margin-bottom: 20px;
    }

    .form-container-overlap {
      margin-top: -100px;
    }

    .contact-form-wrapper {
      padding: 25px;

      h2 {
        font-size: 24px;
      }
    }

    .map-section {
      height: 450px;
    }
  }

  @media (max-width: 576px) {
    .form-container-overlap {
      margin-top: -80px;
    }

    .contact-form-wrapper {
      padding: 20px;
    }

    .btn-submit {
      width: 100%;
    }

    .map-section {
      height: 400px;
    }
  }
}