/* Liên Hệ Page Styles */

/* Success modal */
.vpdn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998
}

.vpdn-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 8px;
    z-index: 9999;
    overflow: hidden
}

.vpdn-modal-content {
    padding: 28px
}

.vpdn-modal-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    margin: 0 0 18px;
    color: #111827;
}

.vpdn-modal-content p {
    font-size: 16px;
    line-height: 21px;
    color: #111827;
    margin: 0 0 10px
}

.vpdn-modal-footer {
    background: #f3f4f6;
    padding: 16px;
    display: flex;
    justify-content: flex-end
}

.vpdn-modal-close {
    background: #e11d48;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer
}

.vpdn-modal-close:hover {
    background: #be123c
}


/* Map Section */
.map-section {
  background: #fff;
}

.map-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.company-name {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: #2092cd;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 16px;
}

.contact-text {
  flex: 1;
  line-height: 1.6;
}

.contact-text strong {
  color: #333;
  font-weight: 600;
}

.contact-text a {
  text-decoration: none;
}


/* Contact Form */
.contact-form {
  background: #fff;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

/* Styling cho labels */
.contact-form .wpcf7-form label {
    display: block;
    font-weight: 500;
    color: #fff;
    font-size: 13px;
    /* Giảm font size */
    line-height: 1.2;
}


.contact-form .wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
    min-height: 60px;
    margin: 10px 0 0;
}

.contact-form  .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form input[type="number"],
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 8px 12px 8px 35px;
    /* Giảm padding và điều chỉnh padding-left */
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
    /* Giảm line-height */
    height: 42px;
    /* Cố định chiều cao */
    box-sizing: border-box;
    color: #333;
    font-weight: normal;
}

.contact-form .wpcf7-form select {
    padding-left: 6px;
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form select:focus,
.contact-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: #2092cd;
    box-shadow: 0 0 0 3px rgba(32, 146, 205, 0.1);
}

.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder {
    color: #999;
}

/* Icons cho các field */
.contact-form .wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap::before {
    position: absolute;
    left: 10px;
    top: 0px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #333;
    z-index: 2;
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.contact-form .wpcf7-form textarea {
  height: 100px;
  padding-left: 10px;
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap[data-field="ho-ten"]::before {
    content: "\f007";
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap[data-field="email"]::before {
    content: "\f0e0";
    /* Envelope icon */
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap[data-field="dia-chi"]::before {
    content: "\f3c5";
    /* Map marker icon */
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap[data-field="dien-thoai"]::before {
    content: "\f095";
    /* Phone icon */
}

.contact-form .wpcf7-form label .wpcf7-form-control-wrap + br {
  display: none;
}

.contact-form .wpcf7-not-valid-tip {
  position: relative;
  top: 3px;
}

.form-submit {
  margin-top: 16px;
}
/* Submit button */
.wpcf7-form .wpcf7-submit {
    background: #2092cd;
    color: #fff;
    border: 2px solid #2092cd;
    padding: 12px 30px;
    /* Giảm padding */
    font-size: 15px;
    /* Giảm font size */
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 180px;
    /* tăng nhẹ */
    justify-self: center;
    height: 44px;
    /* Cố định chiều cao */
    line-height: 1.2;
    box-shadow: 0 8px 22px rgba(255, 255, 255, .15);
}

.form-submit>p {
    display: inline-block;
    position: relative;
}

.wpcf7-form .wpcf7-submit:hover {
    background: #f1f5f9;
    color: #187db1;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}


.wpcf7-response-output {
    display: none;
}
/* Modal styles sẽ được kế thừa từ form.js modal system */

/* Responsive Design */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }
  
  .map-container {
    height: 350px;
  }
  
  .contact-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 16px;
  }
  .contact-info,
  .contact-form {
    padding: 20px 15px;
  }
  
  .contact-item {
    align-items: start;
    gap: 10px;
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
  }
  
  .contact-icon i {
    font-size: 14px;
  }
}
