:root {
  --gray-900: #4d4e53;
  --gray-400: #d2d4da;
  --gray-200: #e8e9ec;
  --primary-red: #cc092f;
  --button-red: #e60935;
  --button-red-dark: #99000f;
  --white: #ffffff;
}

.p-card {
  padding: 24px 0 16px 0;
  background: var(--white);
}
.p-header {
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto 16px auto;
}
.p-header h3 {
  font-family: "Bradesco Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 6px 0;
}
.p-header h3 em {
  font-weight: 700;
}
.p-sub {
  font-family: "Bradesco Sans", Arial, sans-serif;
  font-size: 1rem;
  color: var(--gray-900);
  margin: 0;
}
.p-form {
  max-width: 720px;
  margin: 24px auto;
  font-family: "Bradesco Sans", Arial, sans-serif;
}
.p-field {
  margin-top: 20px;
}
.p-field label {
  display: inline-block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.p-field label::after {
  content: " *";
  color: var(--primary-red);
}
.p-field input[type="text"],
.p-field input[type="tel"] {
  width: 100%;
  height: 48px;
  line-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--gray-400);
  border-radius: 6px;
  box-shadow: none;
  font-size: 1rem;
  color: #333;
}
.p-field input::placeholder {
  color: #9aa0a6;
}
.p-check {
  display: none;
}
.p-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-400);
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: 2px;
}
.p-field input[type="checkbox"]:checked {
  border-color: var(--primary-red);
  background: var(--primary-red);
}
.p-field input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.p-field + .p-field,
.p-field {
  color: #333;
}
.p-form a {
  color: var(--primary-red);
  text-decoration: underline;
}
.p-row {
  margin-top: 28px;
}
.p-form button[type="submit"] {
  color: var(--white) !important;
  width: auto !important;
  min-width: 160px;
  height: 44px !important;
  line-height: 44px !important;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    var(--button-red) 70%,
    var(--button-red-dark) 140%
  );
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.p-form button[type="submit"]:hover {
  filter: brightness(0.97);
}
.p-footnote {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gray-900);
}
.p-alert {
  padding: 10px 12px;
  border-radius: 4px;
  margin: 10px 0;
}
.p-alert-danger {
  background: #ffe9e9;
  color: #99000f;
  border: 1px solid #f5c2c7;
}

button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 20px;
  font-size: 16px;
}

.message-text a { 
  color: #ffeb3b; 
  text-decoration: underline; 
  font-weight: bold; 
  word-break: break-all; 
  cursor: pointer; 
} 

.message-send .message-text a {
   color: #0b67bd;
} 

.message-receive .message-text a { 
  color: #fff;
}

.is-invalid {
  box-shadow: 0 0 6px #e6093533 !important;
  border: 1px solid #e60935 !important;
  border-radius: 6px !important;
}

.p-error {
  display:none;
  color: #cc092f !important;
  padding: 5px 0 5px 0 !important;
}

@media (max-width: 768px) {

  .p-layout {
    display: flex;
    flex-direction: column;   
    align-items: center;
    padding: 1rem;
    gap: 16px;
  }

  .p-col-right {
    order: -1;               
    width: 100% !important;
    text-align: center;       
  }

  .p-col-left {
    order: 0;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .p-hero-img {
    max-width: 100%;
    height: auto;
  }

  .p-form button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}
