/* assets/css/contract.css */
/* Gasparian FOTO Contract Page */

/* -----------------------------
   Page / General Layout
----------------------------- */

* {
  box-sizing: border-box;
}

body {
  background: #eeeeee;
}

.contract-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 12px 48px;
}

/* If you removed the top intro toolbar, this can stay harmless */
.contract-toolbar {
  margin: 0 auto 18px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

.contract-toolbar h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.contract-toolbar p {
  margin: 0;
  color: #555;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* -----------------------------
   Contract Paper
----------------------------- */

.contract-page {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  padding: .42in .48in;
  background: #fff;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.8px;
  line-height: 1.28;
  color: #111;
}

/* -----------------------------
   Contract Header / Logo
----------------------------- */

.contract-header {
  margin-bottom: 10px;
}

.contract-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 8px;
}

.contract-logo-wrap {
  flex: 0 0 auto;
  text-align: left;
}

.contract-logo {
  display: block !important;
  width: auto !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: 88px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.contract-contact {
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  padding-top: 0;
}

.contract-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 1px;
}

.contract-header h2 {
  margin: 7px 0 10px;
  font-size: 15.5px;
  text-align: center;
  font-weight: 700;
}

/* Old header support, in case part of the old code still exists */
.brand-line,
.email-line {
  display: none;
}

/* -----------------------------
   Top Fillable Fields
----------------------------- */

.contract-fields {
  margin-top: 8px;
  margin-bottom: 12px;
}

.field-row {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.one-col {
  grid-template-columns: 1fr;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.three-col {
  grid-template-columns: 1fr 1fr 1.25fr;
}

.field-row label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor;
}

.contract-fields input,
.date-box input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  outline: none;
  background: transparent;
  padding: 4px 3px 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #111;
  box-shadow: none;
}

.contract-fields input:focus,
.date-box input:focus,
.notes-section textarea:focus {
  background: #fffde8;
}

.money-row {
  max-width: 560px;
}

/* -----------------------------
   Contract Terms
----------------------------- */

.contract-terms {
  margin: 8px 0 0 16px;
  padding: 0;
}

.contract-terms li {
  margin-bottom: 4.7px;
  padding-left: 2px;
}

.contract-terms strong {
  font-weight: 700;
  text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor;
}

/* -----------------------------
   Exclusive Rights
----------------------------- */

.exclusive-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 5px 0 3px;
  font-weight: 700;
}

.exclusive-row label {
  font-weight: 400;
  margin: 0;
}

.term-11 {
  margin-top: 2px;
}

/* -----------------------------
   Notes
----------------------------- */

.notes-section {
  margin-top: 8px;
}

.notes-section label {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}

.notes-section textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  background: transparent;
  padding: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 1.3;
  color: #111;
  box-shadow: none;
}

/* -----------------------------
   Signature Section
----------------------------- */

.signature-section {
  display: grid;
  grid-template-columns: 2.1fr .9fr 2.1fr .9fr;
  gap: 14px;
  align-items: end;
  margin-top: 12px;
}

.signature-box label,
.date-box label {
  display: block;
  margin-bottom: 3px;
  font-weight: 400;
}

#signaturePad {
  display: block;
  width: 100%;
  height: 78px;
  border: 1px solid #333;
  background: #fff;
  touch-action: none;
}

.small-button {
  margin-top: 5px;
  padding: 4px 8px;
  border: 1px solid #333;
  background: #f7f7f7;
  cursor: pointer;
  font-size: 11px;
}

.studio-line {
  height: 30px;
  border-bottom: 1px solid #000;
}

/* -----------------------------
   Agreement / Submit
----------------------------- */

.agreement {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #c9c9c9;
  background: #fafafa;
  font-size: 13px;
  line-height: 1.4;
}

.submit-area {
  margin-top: 18px;
  text-align: center;
}

.submit-button {
  padding: 12px 22px;
  border: none;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.submit-button:hover {
  background: #333;
}

/* -----------------------------
   Error / Success Messages
----------------------------- */

.error-list {
  max-width: 8.5in;
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: #fff2f2;
  border: 1px solid #d98c8c;
  color: #600;
}

.success-box {
  max-width: 8.5in;
  margin: 0 auto 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}

/* -----------------------------
   Mobile Responsive
----------------------------- */

@media screen and (max-width: 820px) {
  .contract-shell {
    padding: 12px 8px 32px;
  }

  .contract-toolbar {
    padding: 14px;
  }

  .contract-page {
    width: 100%;
    min-height: auto;
    padding: 18px 14px;
    font-size: 13px;
    line-height: 1.38;
  }

  .contract-brand {
    display: block;
    text-align: center;
  }

  .contract-logo-wrap {
    text-align: center;
  }

  .contract-logo {
    width: auto !important;
    max-width: 170px !important;
    max-height: 60px !important;
    margin: 0 auto 8px !important;
  }

  .contract-contact {
    text-align: center;
    font-size: 14px;
    padding-top: 0;
  }

  .contract-brand-name {
    font-size: 18px;
  }

  .contract-header h2 {
    font-size: 16px;
    margin-top: 10px;
  }

  .field-row,
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-row label {
    display: block;
    white-space: normal;
    font-size: 14px;
  }

  .contract-fields input,
  .date-box input {
    display: block;
    margin-top: 2px;
    min-height: 32px;
    font-size: 16px;
  }

  .contract-terms {
    margin-left: 20px;
  }

  .exclusive-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .signature-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #signaturePad {
    height: 130px;
  }
}

/* -----------------------------
   Print / PDF Browser Layout
----------------------------- */

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  body {
    background: #fff;
  }

  .no-print,
  .contract-toolbar,
  .navbar,
  .page-loader,
  .module-small,
  .footer,
  .scroll-up {
    display: none !important;
  }

  .contract-shell {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .contract-page {
    width: 8.5in;
    min-height: 11in;
    margin: 0;
    padding: .42in .48in;
    box-shadow: none;
    font-size: 10.8px;
    line-height: 1.28;
  }

  .contract-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contract-logo {
    width: auto !important;
    max-width: 240px !important;
    max-height: 88px !important;
  }

  .contract-contact {
    text-align: right;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
  }

  .contract-brand-name {
    font-size: 17px;
    font-weight: 800;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .three-col {
    grid-template-columns: 1fr 1fr 1.25fr;
  }

  .signature-section {
    grid-template-columns: 2.1fr .9fr 2.1fr .9fr;
  }

  input,
  textarea {
    color: #000;
  }
}