/*
Theme Name: Melting Top Games
Theme URI: https://example.com/meltingtopgames
Author: Melting Top Games
Description: A faithful WordPress conversion of the Melting Top Games gaming editorial design.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: meltingtopgames
*/

/* Contact Form 7 — preserve the original Contact page design */
.mgt-cf7-contact .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.mgt-cf7-contact .wpcf7-form > p {
  margin: 0;
  min-width: 0;
}

.mgt-cf7-contact .wpcf7-form > p.mgt-contact-message,
.mgt-cf7-contact .wpcf7-form > p.mgt-contact-submit,
.mgt-cf7-contact .wpcf7-response-output {
  grid-column: 1 / -1;
}

.mgt-cf7-contact .wpcf7-form > p.mgt-contact-message {
  margin-top: 0;
}

.mgt-cf7-contact .wpcf7-form label {
  display: block;
  color: #000;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25rem;
  text-transform: uppercase;
}

.mgt-cf7-contact .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.75rem;
}

.mgt-cf7-contact input[type="text"],
.mgt-cf7-contact input[type="email"],
.mgt-cf7-contact input[type="url"],
.mgt-cf7-contact input[type="tel"],
.mgt-cf7-contact textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 1rem;
  font: inherit;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
  transition: background-color .2s ease;
  appearance: none;
}

.mgt-cf7-contact input[type="text"],
.mgt-cf7-contact input[type="email"],
.mgt-cf7-contact input[type="url"],
.mgt-cf7-contact input[type="tel"] {
  min-height: 60px;
}

.mgt-cf7-contact textarea {
  min-height: 176px;
  resize: vertical;
}

.mgt-cf7-contact input[type="text"]:focus,
.mgt-cf7-contact input[type="email"]:focus,
.mgt-cf7-contact input[type="url"]:focus,
.mgt-cf7-contact input[type="tel"]:focus,
.mgt-cf7-contact textarea:focus {
  background: #f5fceb;
}

.mgt-cf7-contact input::placeholder,
.mgt-cf7-contact textarea::placeholder {
  color: rgba(0,0,0,.45);
  opacity: 1;
}

.mgt-cf7-contact input[type="submit"],
.mgt-cf7-contact button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border: 2px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  padding: 1.25rem 2rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.mgt-cf7-contact input[type="submit"]:hover,
.mgt-cf7-contact button[type="submit"]:hover {
  background: #b9f747;
  color: #000;
}

.mgt-cf7-contact .wpcf7-spinner {
  margin: 1rem auto 0;
  display: block;
}

.mgt-cf7-contact .wpcf7-not-valid-tip {
  margin-top: 0.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mgt-cf7-contact .wpcf7-response-output {
  width: 100%;
  margin: 0 !important;
  border: 2px solid #000 !important;
  padding: 1rem !important;
  background: #fff;
  color: #000;
  font-weight: 700;
}

.mgt-cf7-contact .wpcf7-form.invalid .wpcf7-response-output,
.mgt-cf7-contact .wpcf7-form.unaccepted .wpcf7-response-output,
.mgt-cf7-contact .wpcf7-form.payment-required .wpcf7-response-output,
.mgt-cf7-contact .wpcf7-form.failed .wpcf7-response-output,
.mgt-cf7-contact .wpcf7-form.aborted .wpcf7-response-output,
.mgt-cf7-contact .wpcf7-form.spam .wpcf7-response-output {
  background: #fff;
}

.mgt-cf7-success-icon {
  width: 6rem;
  height: 6rem;
  color: #a0e02e;
}

.mgt-cf7-success-icon svg {
  width: 100%;
  height: 100%;
}

.mgt-cf7-success-card[hidden],
.mgt-cf7-form-card[hidden] {
  display: none !important;
}

.mgt-contact-unavailable {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 639px) {
  .mgt-cf7-contact .wpcf7-form {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mgt-cf7-contact .wpcf7-form > p {
    grid-column: 1;
  }
}
