/* ========== GLOBAL FIX FOR HORIZONTAL SCROLL ========== */
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* ========== CONTACT CONTENT SECTION ========== */

.contact-content-section {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
}

.contact-content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
  pointer-events: none;
}

.contact-content-section .container {
  position: relative;
  z-index: 1;
}

/* ========== CONTACT INFO CARDS ========== */

.contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ff8533);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

.contact-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
  transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon-wrapper {
  transform: rotate(5deg) scale(1.1);
}

.contact-icon-wrapper i {
  font-size: 36px;
  color: #ffffff;
  animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.contact-info-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.contact-info-card:hover .contact-info-title {
  color: #ff6a00;
}

.contact-info-text {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.contact-info-text a {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-info-text a:hover {
  color: #ff8533;
  text-decoration: underline;
}

/* ========== CONTACT FORM CARD ========== */

.contact-form-wrapper {
  background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 106, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.form-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.form-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* ========== FORM GROUPS ========== */

.form-group {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.form-label .required {
  color: #ff6a00;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  color: #1a1a1a;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

.form-control.error {
  border-color: #dc3545;
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Error message */
.error-message {
  display: none;
  font-size: 13px;
  color: #dc3545;
  margin-top: 8px;
  font-weight: 500;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success message */
.success-message {
  display: none;
  padding: 15px 20px;
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid #28a745;
  border-radius: 12px;
  color: #28a745;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 25px;
  animation: fadeIn 0.3s ease;
}

.success-message.show {
  display: block;
}

.success-message i {
  margin-right: 8px;
}

/* ========== SUBMIT BUTTON ========== */

.btn-submit {
  width: 100%;
  padding: 18px 40px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit:disabled {
  background: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-submit:disabled:hover {
  transform: none;
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* Loading spinner */
.btn-submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading span {
  display: none;
}

/* ========== CONTACT MAP/INFO SECTION ========== */

.contact-map-section {
  margin-top: 80px;
}

.map-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(
      135deg,
      rgba(255, 106, 0, 0.1),
      rgba(255, 133, 51, 0.1)
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Crect fill='%23f8f9fa' width='800' height='400'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial' font-size='20' fill='%23666'%3EMap Integration Area%3C/text%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== REVEAL ANIMATIONS ========== */

.revealY {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealY.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.col-lg-4:nth-child(1),
.col-md-6:nth-child(1) {
  transition-delay: 0.1s;
}

.col-lg-4:nth-child(2),
.col-md-6:nth-child(2) {
  transition-delay: 0.2s;
}

.col-lg-4:nth-child(3),
.col-md-6:nth-child(3) {
  transition-delay: 0.3s;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
  .contact-content-section {
    padding: 120px 0;
  }

  .contact-content-section::before {
    height: 240px;
  }

  .contact-info-card {
    padding: 45px 35px;
  }

  .contact-icon-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 30px;
  }

  .contact-icon-wrapper i {
    font-size: 40px;
  }

  .contact-info-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .contact-info-text {
    font-size: 16px;
  }

  .contact-form-wrapper {
    padding: 60px;
    border-radius: 28px;
  }

  .form-header {
    margin-bottom: 50px;
  }

  .form-title {
    font-size: 36px;
    margin-bottom: 18px;
  }

  .form-subtitle {
    font-size: 17px;
  }

  .form-group {
    margin-bottom: 30px;
  }

  .form-label {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .form-control {
    padding: 17px 24px;
    font-size: 16px;
    border-radius: 14px;
  }

  textarea.form-control {
    min-height: 180px;
  }

  .error-message {
    font-size: 14px;
    margin-top: 10px;
  }

  .success-message {
    padding: 18px 24px;
    font-size: 16px;
    margin-bottom: 30px;
  }

  .btn-submit {
    padding: 20px 45px;
    font-size: 17px;
    border-radius: 14px;
  }

  .contact-map-section {
    margin-top: 100px;
  }

  .map-placeholder {
    height: 480px;
  }
}

/* Standard Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .contact-content-section {
    padding: 100px 0;
  }
}

/* Tablets and Small Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .contact-content-section {
    padding: 80px 0;
  }

  .contact-content-section::before {
    height: 180px;
  }

  .contact-info-card {
    padding: 35px 28px;
  }

  .contact-icon-wrapper {
    width: 75px;
    height: 75px;
    margin-bottom: 22px;
  }

  .contact-icon-wrapper i {
    font-size: 34px;
  }

  .contact-info-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .contact-info-text {
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 45px 40px;
    border-radius: 22px;
  }

  .form-header {
    margin-bottom: 35px;
  }

  .form-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .form-subtitle {
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-control {
    padding: 14px 18px;
    font-size: 14px;
  }

  textarea.form-control {
    min-height: 140px;
  }

  .btn-submit {
    padding: 16px 36px;
    font-size: 15px;
  }

  .contact-map-section {
    margin-top: 70px;
  }

  .map-placeholder {
    height: 380px;
  }
}

/* Tablets Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .revealX {
    transform: translateY(60px) translateX(0) !important;
    opacity: 0;
  }

  .revealX.active {
    transform: translateY(0) translateX(0) !important;
    opacity: 1;
  }

  .contact-content-section {
    padding: 70px 0;
  }

  .contact-content-section::before {
    height: 150px;
  }

  .contact-info-card {
    padding: 35px 28px;
    margin-bottom: 20px;
  }

  .contact-icon-wrapper {
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
  }

  .contact-icon-wrapper i {
    font-size: 34px;
  }

  .contact-info-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .contact-info-text {
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 40px 30px;
    border-radius: 20px;
  }

  .form-header {
    margin-bottom: 30px;
  }

  .form-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .form-subtitle {
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .form-control {
    padding: 13px 18px;
    font-size: 14px;
  }

  textarea.form-control {
    min-height: 130px;
  }

  .error-message {
    font-size: 12px;
  }

  .success-message {
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 22px;
  }

  .btn-submit {
    padding: 16px 34px;
    font-size: 15px;
  }

  .contact-map-section {
    margin-top: 60px;
  }

  .map-placeholder {
    height: 350px;
  }
}

/* Mobile Landscape & Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .contact-content-section {
    padding: 60px 0;
  }

  .contact-content-section::before {
    height: 130px;
  }

  .contact-info-card {
    padding: 32px 26px;
    margin-bottom: 15px;
  }

  .contact-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .contact-icon-wrapper i {
    font-size: 32px;
  }

  .contact-info-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .contact-info-text {
    font-size: 14px;
  }

  .contact-form-wrapper {
    padding: 35px 25px;
    border-radius: 18px;
  }

  .form-header {
    margin-bottom: 28px;
  }

  .form-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .form-subtitle {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .form-control {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .error-message {
    font-size: 12px;
  }

  .success-message {
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .btn-submit {
    padding: 15px 32px;
    font-size: 14px;
  }

  .contact-map-section {
    margin-top: 50px;
  }

  .map-placeholder {
    height: 320px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .revealX {
    transform: translateY(40px) translateX(0) !important;
    opacity: 0;
  }

  .revealY {
    transform: translateY(40px) !important;
  }

  .contact-content-section {
    padding: 50px 0;
  }

  .contact-content-section::before {
    height: 120px;
  }

  .contact-info-card {
    padding: 30px 24px;
    margin-bottom: 15px;
    border-radius: 18px;
  }

  .contact-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .contact-icon-wrapper i {
    font-size: 32px;
  }

  .contact-info-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .contact-info-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .contact-form-wrapper::before {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
  }

  .form-header {
    margin-bottom: 25px;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .form-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .form-control {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .error-message {
    font-size: 11px;
    margin-top: 6px;
  }

  .success-message {
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 18px;
    border-radius: 10px;
  }

  .btn-submit {
    padding: 14px 30px;
    font-size: 14px;
    border-radius: 10px;
    letter-spacing: 0.5px;
  }

  .btn-submit .spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .contact-map-section {
    margin-top: 50px;
  }

  .map-card {
    border-radius: 16px;
  }

  .map-placeholder {
    height: 300px;
  }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  .contact-content-section {
    padding: 45px 0;
  }

  .contact-content-section::before {
    height: 100px;
  }

  .contact-info-card {
    padding: 28px 22px;
  }

  .contact-icon-wrapper {
    width: 65px;
    height: 65px;
    margin-bottom: 16px;
  }

  .contact-icon-wrapper i {
    font-size: 30px;
  }

  .contact-info-title {
    font-size: 17px;
  }

  .contact-info-text {
    font-size: 12px;
  }

  .contact-form-wrapper {
    padding: 28px 18px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-subtitle {
    font-size: 12px;
  }

  .form-label {
    font-size: 11px;
  }

  .form-control {
    padding: 11px 14px;
    font-size: 12px;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .btn-submit {
    padding: 13px 28px;
    font-size: 13px;
  }

  .map-placeholder {
    height: 280px;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .contact-content-section {
    padding: 40px 0;
  }

  .contact-info-card {
    padding: 25px 20px;
  }

  .contact-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .contact-icon-wrapper i {
    font-size: 28px;
  }

  .contact-info-title {
    font-size: 16px;
  }

  .contact-info-text {
    font-size: 11px;
  }

  .contact-form-wrapper {
    padding: 25px 16px;
  }

  .form-header {
    margin-bottom: 20px;
  }

  .form-title {
    font-size: 18px;
  }

  .form-subtitle {
    font-size: 11px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-label {
    font-size: 11px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 12px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  .error-message {
    font-size: 10px;
  }

  .success-message {
    padding: 11px 14px;
    font-size: 12px;
  }

  .btn-submit {
    padding: 12px 24px;
    font-size: 12px;
  }

  .map-placeholder {
    height: 260px;
  }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .contact-content-section {
    padding: 40px 0;
  }

  .contact-content-section::before {
    height: 100px;
  }

  .contact-info-card {
    padding: 28px 22px;
  }

  .contact-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .contact-icon-wrapper i {
    font-size: 28px;
  }

  .contact-form-wrapper {
    padding: 30px 25px;
  }

  .form-header {
    margin-bottom: 25px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-control {
    padding: 11px 16px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  .btn-submit {
    padding: 13px 28px;
  }

  .map-placeholder {
    height: 280px;
  }

  @keyframes iconFloat {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .contact-content-section {
    padding: 60px 0;
  }

  .contact-info-card {
    padding: 32px 26px;
  }

  .contact-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .contact-icon-wrapper i {
    font-size: 32px;
  }

  .contact-form-wrapper {
    padding: 38px 32px;
  }

  .form-title {
    font-size: 26px;
  }

  .form-control {
    padding: 13px 18px;
  }

  .map-placeholder {
    height: 320px;
  }
}
