/* =========================
   CONTACT US PAGE STYLES
========================= */

/* Contact Hero Section */

.contact-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 22, 35, 0.95) 0%, rgba(11, 22, 35, 0.8) 100%), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1920');
  background-size: cover;
  background-position: center;
  padding: 8rem 0 4rem !important;
  color: var(--white);
  text-align: center;
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(135deg, rgba(11, 45, 77, 0.9), rgba(184, 146, 59, 0.7));*/
  z-index: 1;
}

.contact-hero-section .container {
  position: relative;
  z-index: 2;
}

.contact-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Main Section */

.contact-main-section {
  padding: 5rem 0;
}

/* Contact Info Card */

.contact-info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-info-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.contact-info-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-info-list {
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-gray);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--gold-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-info-content {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.contact-info-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.contact-info-content a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: var(--gold-primary);
}

.contact-info-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info-link:hover {
  color: var(--blue-dark);
  transform: translateX(5px);
}

.contact-info-link i {
  font-size: 0.9rem;
}

/* Contact Social */

.contact-social h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--off-white);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gold-primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Contact Form Card */

.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.form-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Form Elements */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label .required {
  color: #dc3545;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  background: var(--white);
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--gold-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 59, 0.15);
}

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230b2d4d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px;
  padding-right: 3rem;
}

.contact-textarea {
  resize: vertical;
  min-height: 150px;
}

.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Contact Methods */

.contact-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.contact-method input {
  display: none;
}

.method-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--off-white);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.contact-method input:checked+.method-label {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--white);
}

.method-label i {
  font-size: 1rem;
}

/* Form Check */

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-check-input {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.form-check-label {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
  cursor: pointer;
}

/* Submit Button */

.btn-contact-submit {
  padding: 1rem 2.5rem;
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.btn-contact-submit:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11, 45, 77, 0.2);
}

.btn-contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  margin-top: 1.5rem;
  color: rgb(34, 197, 94);
}

.form-success i {
  font-size: 1.2rem;
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* Branches Section */

.branches-section {
  padding: 5rem 0;
}

.branch-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.branch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.branch-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0;
}

.branch-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--off-white);
  color: var(--gold-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branch-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.branch-info i {
  color: var(--gold-primary);
  font-size: 1rem;
  min-width: 20px;
  margin-top: 0.1rem;
}

.branch-info a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.branch-info a:hover {
  color: var(--gold-primary);
}

.btn-branch-directions {
  width: 100%;
  padding: 0.9rem;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-branch-directions:hover {
  background: var(--gold-primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Map Section */

.map-section {
  padding: 0;
}

.map-container {
  height: 500px;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 45, 77, 0.9), rgba(11, 45, 77, 0.8)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=1920');
  background-size: cover;
  background-position: center;
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  background: rgba(11, 45, 77, 0.8);
  border-radius: 16px;
  max-width: 500px;
}

.map-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.map-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn-map-directions {
  padding: 0.9rem 2rem;
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-map-directions:hover {
  background: var(--white);
  color: var(--blue-dark);
  transform: translateY(-3px);
}

/* Quick Contact Section */

.quick-contact-section {
  background: linear-gradient(rgba(11, 45, 77, 0.9), rgba(11, 45, 77, 0.8)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=1920');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6rem 0;
  color: var(--white);
}

.quick-contact-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.quick-contact-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quick-contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quick-contact-option {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-contact-option:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.option-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.option-content {
  text-align: left;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.option-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.option-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.option-number,
.option-email {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-primary);
}

/* Success Modal */

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.contact-modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--blue-dark);
  color: var(--white);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 3rem 2rem;
  text-align: center;
}

.modal-icon {
  font-size: 4rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.modal-message {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-reference {
  font-size: 1rem;
  color: var(--text-muted);
}

.modal-reference strong {
  color: var(--blue-dark);
}

.modal-footer {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: var(--off-white);
}

.btn-modal-close,
.btn-modal-home {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-modal-close {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--border-gray);
}

.btn-modal-close:hover {
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.btn-modal-home {
  background: var(--gold-primary);
  color: var(--white);
  border: 2px solid var(--gold-primary);
}

.btn-modal-home:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1199px) {
  .quick-contact-options {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 991px) {
  .contact-main-section .row {
    flex-direction: column;
  }
}

@media (max-width: 991px) {

  .contact-info-card,
  .contact-form-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 991px) {
  .quick-contact-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {

  .contact-hero-section,
  .quick-contact-section {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {

  .contact-main-section,
  .branches-section {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {

  .contact-info-card,
  .contact-form-card,
  .branch-card {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .form-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .contact-methods {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .method-label {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .map-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

@media (max-width: 767px) {
  .modal-content {
    width: 95%;
  }
}

@media (max-width: 767px) {

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {

  .contact-hero-title,
  .quick-contact-title {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {

  .contact-hero-subtitle,
  .quick-contact-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .contact-info-item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 575px) {
  .contact-info-icon {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 575px) {
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .quick-contact-option {
    flex-direction: column;
    text-align: center;
  }

  .option-content {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .btn-contact-submit {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .modal-footer {
    flex-direction: column;
  }
}

@media (max-width: 575px) {

  .btn-modal-close,
  .btn-modal-home {
    width: 100%;
  }
}