/*
 * File:    appson-start-project.css
 * Section: Start Your Project
 * Place:   /wp-content/your-theme/assets/css/appson-start-project.css
 */

/* ── RESET & ROOT ──────────────────────────────────────────────────────────── */
.appson-sypb-banner *,
.appson-sypb-banner *::before,
.appson-sypb-banner *::after,
.appson-sypb-main *,
.appson-sypb-main *::before,
.appson-sypb-main *::after {
  box-sizing: border-box;
}

:root {
  --appson-sypb-blue:       #3b5bdb;
  --appson-sypb-blue-light: #eef1fd;
  --appson-sypb-dark:       #111111;
  --appson-sypb-gray-text:  #555;
  --appson-sypb-border:     #e0e0e0;
  --appson-sypb-card-bg:    #f4f4f5;
  --appson-sypb-input-bg:   #ffffff;
  --appson-sypb-tag-border: #c8c8c8;
}

/* ── BANNER ────────────────────────────────────────────────────────────────── */
.appson-sypb-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1.5px solid var(--appson-sypb-border);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 24px auto;
  max-width: 1160px;
  background: #fff;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
}

.appson-sypb-banner__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.appson-sypb-banner__icon {
  width: 48px;
  height: 48px;
  background: var(--appson-sypb-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appson-sypb-banner__icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.appson-sypb-banner__text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--appson-sypb-dark);
  line-height: 1.3;
  margin: 0;
}

.appson-sypb-banner__text p {
  font-size: 13px;
  color: var(--appson-sypb-gray-text);
  margin-top: 2px;
  line-height: 1.5;
}

.appson-sypb-banner__btn {
  background: var(--appson-sypb-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  flex-shrink: 0;
}

.appson-sypb-banner__btn:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ── MAIN SECTION ──────────────────────────────────────────────────────────── */
.appson-sypb-main {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  font-family: 'DM Sans', sans-serif;
}

/* ── LEFT COLUMN ───────────────────────────────────────────────────────────── */
.appson-sypb-left {
  padding-top: 10px;
}

.appson-sypb-left__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--appson-sypb-blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.appson-sypb-left__heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--appson-sypb-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.appson-sypb-left__tagline {
  font-size: 15px;
  color: var(--appson-sypb-gray-text);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 48px;
}

/* ── CONTACT GRID ──────────────────────────────────────────────────────────── */
.appson-sypb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 32px;
  column-gap: 24px;
}

.appson-sypb-contact-block h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--appson-sypb-dark);
}

.appson-sypb-contact-block p,
.appson-sypb-contact-block a {
  font-size: 13.5px;
  color: var(--appson-sypb-gray-text);
  line-height: 1.65;
  text-decoration: none;
}

.appson-sypb-contact-block a:hover {
  color: var(--appson-sypb-blue);
}

/* ── SOCIAL ICONS ──────────────────────────────────────────────────────────── */
.appson-sypb-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.appson-sypb-social-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.appson-sypb-social-dot:hover {
  background: var(--appson-sypb-blue);
}

.appson-sypb-social-dot svg {
  width: 14px;
  height: 14px;
  fill: #666;
}

.appson-sypb-social-dot:hover svg {
  fill: #fff;
}

/* ── FORM CARD ─────────────────────────────────────────────────────────────── */
.appson-sypb-form-card {
  background: var(--appson-sypb-card-bg);
  border-radius: 20px;
  padding: 20px 32px;
}

.appson-sypb-form-card__heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--appson-sypb-dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.appson-sypb-form-card__subtitle {
  font-size: 13.5px;
  color: var(--appson-sypb-gray-text);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── CF7 WRAPPER & FORM OVERRIDES ──────────────────────────────────────────── */
.appson-sypb-cf7-wrapper .wpcf7 {
  margin: 0;
  padding: 0;
}

/* Two-column layout for CF7 form rows (use CF7 "column" class or wrap manually) */
.appson-sypb-cf7-wrapper .appson-sypb-cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.appson-sypb-cf7-wrapper p {
  margin-bottom: 14px;
}

/* Labels */
.appson-sypb-cf7-wrapper label,
.appson-sypb-cf7-wrapper .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.appson-sypb-cf7-wrapper label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--appson-sypb-dark);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}

/* Inputs & Textarea */
.appson-sypb-cf7-wrapper input[type="text"],
.appson-sypb-cf7-wrapper input[type="email"],
.appson-sypb-cf7-wrapper input[type="tel"],
.appson-sypb-cf7-wrapper input[type="url"],
.appson-sypb-cf7-wrapper input[type="number"],
.appson-sypb-cf7-wrapper select,
.appson-sypb-cf7-wrapper textarea {
  background: var(--appson-sypb-input-bg);
  border: 1.5px solid var(--appson-sypb-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--appson-sypb-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.appson-sypb-cf7-wrapper input[type="text"]::placeholder,
.appson-sypb-cf7-wrapper input[type="email"]::placeholder,
.appson-sypb-cf7-wrapper input[type="tel"]::placeholder,
.appson-sypb-cf7-wrapper textarea::placeholder {
  color: #b0b0b0;
}

.appson-sypb-cf7-wrapper input[type="text"]:focus,
.appson-sypb-cf7-wrapper input[type="email"]:focus,
.appson-sypb-cf7-wrapper input[type="tel"]:focus,
.appson-sypb-cf7-wrapper textarea:focus {
  border-color: var(--appson-sypb-blue);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}

.appson-sypb-cf7-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button */
.appson-sypb-cf7-wrapper input[type="submit"],
.appson-sypb-cf7-wrapper .wpcf7-submit {
  width: 100%;
  background: var(--appson-sypb-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.appson-sypb-cf7-wrapper input[type="submit"]:hover,
.appson-sypb-cf7-wrapper .wpcf7-submit:hover {
  background: #2f4bc7;
  transform: translateY(-1px);
}

.appson-sypb-cf7-wrapper input[type="submit"]:active,
.appson-sypb-cf7-wrapper .wpcf7-submit:active {
  transform: translateY(0);
}

/* Validation & response messages */
.appson-sypb-cf7-wrapper .wpcf7-not-valid-tip {
  font-size: 11.5px;
  color: #e03131;
  margin-top: 4px;
  display: block;
}

.appson-sypb-cf7-wrapper .wpcf7-response-output {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 16px;
  border: 1.5px solid;
}

.appson-sypb-cf7-wrapper .wpcf7-mail-sent-ok {
  border-color: #2f9e44;
  color: #2f9e44;
  background: #ebfbee;
}

.appson-sypb-cf7-wrapper .wpcf7-mail-sent-ng,
.appson-sypb-cf7-wrapper .wpcf7-spam-blocked,
.appson-sypb-cf7-wrapper .wpcf7-validation-errors {
  border-color: #e03131;
  color: #e03131;
  background: #fff5f5;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .appson-sypb-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appson-sypb-left__tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .appson-sypb-banner {
    margin: 16px;
    padding: 14px 16px;
  }

  .appson-sypb-banner__text h3 {
    font-size: 13.5px;
  }

  .appson-sypb-main {
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .appson-sypb-cf7-wrapper .appson-sypb-cf7-row {
    grid-template-columns: 1fr;
  }

  .appson-sypb-form-card {
    padding: 24px 18px;
  }

  .appson-sypb-contact-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
}

@media (max-width: 400px) {
  .appson-sypb-contact-grid {
    grid-template-columns: 1fr;
  }

  .appson-sypb-banner__btn {
    width: 100%;
    text-align: center;
  }
}
