.section-hero {
  height: 70vh;
  background-image: url('../images/banner_contato.png');
  background-size: cover;
  background-position: center;
  margin-top: -80px;
}

.section-hero .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.2);
}

.section1-title {
    margin-bottom: 40px;
    text-align: left; 
    color: #f5f5f5;
}

.section1-title h1 {
    color: #f5f5f5;
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
}

/* Botões sobre a imagem */
.botoes-hero .btn-custom {
  border: 2px solid #f5f5f5;
  color: #f5f5f5;
  border-radius: 50px;
  padding: 6px 20px;
  font-weight: 500;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.botoes-hero .btn-custom:hover {
  background-color: #f5f5f5;
  color: #4A5359;
}


.btn-header h1{
    margin-right: 11rem;
}


/* SECTION2 */

.links {
    color: inherit; 
    text-decoration: none;
}

#section2 {
  color: #4A5359;
}

#section2 hr {
    opacity: 0.8;
}

.custom-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: auto;
}

.map-buttons {
  background-color: #c73626;
  border-color: #c73626;
  color: #fff;
  padding: 8px 30px;
  text-transform: lowercase;
  font-weight: 500;
}

.map-buttons:hover {
  background-color: #475259;
  border-color: #475259;
  color: #fff;
}

/* SECTION3 */

#section3 {
    background-image: url('../images/section3-bg.png');
    background-size: cover;
    background-position: center;
}

#section3 .form-control,
#section3 .wpcf7 .form-control {
    border-radius: 0;
}

.form_border {
    border: 1px solid rgba(71, 82, 89, 0.3);
    border-radius: 0 25px 0 0;
    background-color: white;
}

.form-container {
    color: #4A5359;
}

.select-style {
    position: relative;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    padding-right: 30px;
    border: 1px solid rgba(71, 82, 89, 0.3);
    background-color: white;
    color: #4A5359;
    cursor: pointer;
}

.select-style i {
    position: absolute;
    right: 8px;
    top: calc(50% - 6px);
    pointer-events: none;
    color: #475259;
}

.select-style::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background-color: rgba(71, 82, 89, 0.3);
}

/* Contact Form 7 Specific Styles */
.wpcf7 .row {
    margin-left: -15px;
    margin-right: -15px;
}

.wpcf7 .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.wpcf7 .mb-3 {
    margin-bottom: 1rem !important;
}

.wpcf7 .form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    display: block;
    width: 100%;
    padding: 8px 15px;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #4A5359;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(71, 82, 89, 0.3);
    border-radius: 0;
    transition: border-color 0.15s ease-in-out;
    height: 38px;
}

.wpcf7 .form-control:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #c73626;
    box-shadow: none;
    outline: none;
}

.wpcf7 .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.wpcf7 textarea,
.wpcf7 textarea.form-control {
    min-height: 174px !important;
    height: 174px !important;
    resize: vertical;
    padding: 8px 15px;
}

/* Select with custom arrow */
.wpcf7 .select-style {
    position: relative;
    margin-bottom: 0;
}

.wpcf7 .select-style select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 35px;
    background-color: white;
    cursor: pointer;
    width: 100%;
    height: 38px !important;
    padding-left: 15px;
}

.wpcf7 .select-style i {
    position: absolute;
    right: 10px;
    top: 14px;
    pointer-events: none;
    color: #475259;
    font-size: 12px;
}

.wpcf7 .select-style::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 5px;
    height: 30px;
    width: 1px;
    background-color: rgba(71, 82, 89, 0.3);
}

/* Remove ALL default Contact Form 7 spacing */
.wpcf7 p {
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7 br {
    display: none !important;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Specific spacing between fields - only 6px */
.wpcf7 .select-style {
    margin-bottom: 6px !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    margin-bottom: 6px !important;
}

.wpcf7 input[type="tel"] {
    margin-bottom: 0 !important;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #dc3545;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem;
    border: 1px solid;
    border-radius: 0;
    font-size: 0.9rem;
}

.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Ajax loader positioning */
.wpcf7 .ajax-loader {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    margin-top: 12px;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    background-color: #c73626;
    border-color: #c73626;
    color: #fff;
    padding: 8px 30px;
    text-transform: lowercase;
    font-weight: 500;
    border-radius: 50rem;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #475259;
    border-color: #475259;
    color: #fff;
}

/* Submit button alignment */
.wpcf7 .text-end {
    text-align: right !important;
    margin-top: 1rem;
    position: relative;
}


@media screen and (max-width: 768px) {

.section1-title {
    left: 40px;
}

.section1-title h1 {
    font-size: 2.5rem;
}

}