/* Credit Card Application Page Styles */
.credit-card-page {
  background: var(--background-default-inverted-primary);
}

.credit-card-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.credit-card-grid {
  display: flex;
  padding: 64px 0 108px 0;
  align-items: center;
  justify-content: space-around;
  gap: 126px;
}

form .col p {
  flex-direction: column;
  display: flex;
  gap: 8px;
}

form label {
  color: var(--text-default-inverted-secondary);
  line-height: 20px;
  font-size: 14px;
}

form input {
  background: var(--background-default-inverted-secondary);
}

/* Left Column - Image */
.credit-card-image {
  position: relative;
  width: 532px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Column - Form Section */
.credit-card-form-section {
  max-width: 642px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.credit-card-form-section p {
  margin: 0;
}

.credit-card-header h1 {
  font-size: 72px;
  line-height: 76px;
  font-weight: 550;
  color: #ffffff;
  font-family: var(--font-family-title);
  margin: 0 0 16px 0;
}

.credit-card-header h1 .highlight {
  color: #d4af37;
}

.credit-card-description {
  font-size: 18px;
  color: var(--text-default-inverted-secondary);
  margin: 0;
}

/* Contact Form 7 Styling */
.credit-card-form {}

.credit-card-form .wpcf7-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.credit-card-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.credit-card-form input[type="text"],
.credit-card-form input[type="email"],
.credit-card-form input[type="tel"],
.credit-card-form input[type="select"],
.credit-card-form select,
.credit-card-form textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--background-default-inverted-secondary);
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.credit-card-form input[type="text"]::placeholder,
.credit-card-form input[type="email"]::placeholder,
.credit-card-form input[type="tel"]::placeholder,
.credit-card-form textarea::placeholder {
  color: #666666;
}

.credit-card-form input[type="text"]:focus,
.credit-card-form input[type="email"]:focus,
.credit-card-form input[type="tel"]:focus,
.credit-card-form select:focus,
.credit-card-form textarea:focus {}

.credit-card-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999999' d='M1.41 0L6 4.59L10.59 0L12 1.41L6 7.41L0 1.41L1.41 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 50px;
  cursor: pointer;
}

.credit-card-form select option {
  background: #0a0a0a;
  color: #ffffff;
  padding: 12px;
}

.credit-card-form textarea {
  height: 72px;
  resize: vertical;
  line-height: 1.6;
}

/* Character Counter Styling */
.credit-card-form .wpcf7-form-control-wrap {
  position: relative;
}

.credit-card-form .char-count-wrapper {
  position: relative;
}

.credit-card-form .char-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  color: #666666;
  pointer-events: none;
  z-index: 1;
}

.credit-card-form .char-count-warning {
  color: #d4af37;
}

/* Form Grid Layout */
.credit-card-form .form-row {}

.credit-card-form .form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-section {
  background: linear-gradient(to top,
      var(--background-default-brand-dark) 0%,
      var(--background-default-brand-dark) 50%,
      #050505 50%,
      #050505 100%) !important;
}

/* Submit Button */
.credit-card-form input[type="submit"],
.credit-card-form button[type="submit"] {
  border-radius: 4px;
  padding: 12px 40px;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  font-family: var(--font-family-title);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.48px;
  font-weight: 550;
  text-transform: uppercase;
  background: #F8F7FA;
  cursor: pointer;
  border: 0;
  margin-top: 16px;
}

.credit-card-form input[type="submit"]:hover,
.credit-card-form button[type="submit"]:hover {}

.wpcf7 form.sent .wpcf7-response-output {
  border: 0;
  color: white;
  text-align: center;
}

/* Character Counter */
.credit-card-form .wpcf7-character-count {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #666666;
  margin-top: 4px;
}

/* Form Validation */
.credit-card-form .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 4px;
}

.credit-card-form .wpcf7-not-valid {
  border-color: #ff6b6b !important;
}

.credit-card-form .wpcf7-response-output {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border-radius: 4px;
  font-size: 14px !important;
  text-align: center;
  border: 0 !important;
  color: white !important;
  line-height: 20px !important;
}

/* Contact Info Section */
.credit-card-info {}

.credit-card-divider {
  text-align: center;
  position: relative;
}

.credit-card-divider::before,
.credit-card-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.credit-card-divider::before {
  left: 0;
}

.credit-card-divider::after {
  right: 0;
}

.credit-card-divider span {
  display: inline-block;
  padding: 0 20px;
  color: #716E7A;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.credit-card-methods {
  display: flex;
  gap: 32px;
  align-items: center;
}

.credit-card-method {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
}

.credit-card-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.credit-card-method a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-default-inverted);
}

.credit-card-method a:hover {
  color: #d4af37;
}

.credit-card-hours {
  color: var(--text-default-inverted-tertiary);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 1040px) {
  .credit-card-page {
    padding: 0;
  }

  .credit-card-image {
    width: 100%;
  }

  .credit-card-grid {
    padding: 52px 0;
    gap: 54px;
    flex-direction: column-reverse;
  }

  .credit-card-header {
    margin-bottom: 12px;
  }

  .credit-card-header h1 {
    font-size: 54px;
    line-height: 60px;
    margin-bottom: 12px;
  }

  .credit-card-form input[type="submit"],
  .credit-card-form button[type="submit"] {
    margin-top: 0;
  }

  .credit-card-method a {
    font-size: 14px;
    line-height: 20px;
  }

  .credit-card-methods {
    gap: 36px;
  }

  .credit-card-description {
    font-size: 15px;
    line-height: 20px;
  }

  .credit-card-form-section {
    gap: 28px;
    max-width: unset;
  }
}

@media (max-width: 640px) {
  .credit-card-page .container {
    padding: 20px;
  }

  .credit-card-page .credit-card-grid {
    flex-direction: column;
  }

  .credit-card-image {
    width: 100%;
    height: 376px;
  }

  .credit-card-grid {
    gap: 36px;
    padding-top: 20px;
  }

  form label {
    font-size: 14px;
  }

  .credit-card-form .form-row-half {
    flex-direction: column;
    display: flex;
  }

  .credit-card-form input[type="submit"],
  .credit-card-form button[type="submit"] {
    width: 100%;
  }

  .credit-card-header h1 {
    font-size: 46px;
    line-height: 52px;
    margin-bottom: 8px;
  }

  .credit-card-description {
    font-size: 15px;
    line-height: 20px;
  }

  .credit-card-form .form-row {
    grid-template-columns: 1fr;
  }

  .credit-card-form-section {
    gap: 24px;
  }

  .credit-card-methods {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .credit-card-form input[type="text"],
  .credit-card-form input[type="email"],
  .credit-card-form input[type="tel"],
  .credit-card-form select,
  .credit-card-form textarea {
    padding: 12px 16px;
    font-size: 16px;
  }

  .credit-card-form input[type="submit"],
  .credit-card-form button[type="submit"] {
    padding: 14px 24px;
    font-size: 16px;
  }
}