/* ===== CSS VARIABLES ===== */
:root {
  --primary-100: #0077c2;
  --primary-200: #59a5f5;
  --primary-300: #c8ffff;
  --accent-100: #00bfff;
  --accent-200: #00619a;
  --text-100: #333333;
  --text-200: #5c5c5c;
  --bg-100: #ffffff;
  --bg-200: #f5f5f5;
  --bg-300: #cccccc;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PHONE EXTENSION STYLES ===== */
.phone-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.country-code-select {
  flex: 0 0 110px;
  min-width: 0;
}

.phone-number-input {
  flex: 1;
  min-width: 0;
}

.phone-extension-input {
  flex: 0 0 100px;
  min-width: 0;
}

.phone-input-group select,
.phone-input-group input {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.phone-input-group select:focus,
.phone-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-helper {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--accent-200) 100%
  );
  color: white;
  text-align: center;
  padding: 120px 0 80px;
  width: 100%;
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 80px 0;
  background: var(--bg-200);
  width: 100%;
}

.contact-container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
  width: 100%;
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
  background: var(--bg-100);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  box-sizing: border-box;
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 1.8rem;
  color: var(--text-100);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-100);
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--bg-300);
  border-radius: var(--border-radius);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--text-100);
  background: var(--bg-100);
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-200);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-100);
  box-shadow: 0 0 0 3px rgba(0, 119, 194, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--primary-100);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  min-width: 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px;
  background: var(--bg-100);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.method-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.method-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-100);
}

.method-content p {
  color: var(--text-200);
  margin-bottom: 5px;
  word-wrap: break-word;
}

.method-content a {
  color: var(--primary-100);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.method-content a:hover {
  color: var(--accent-200);
}

.response-time {
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  width: 100%;
}

.response-time h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.response-time p {
  opacity: 0.9;
}

.office-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.office-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-300);
}

.office-item:last-child {
  border-bottom: none;
}

.office-item strong {
  color: var(--text-100);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.office-item span {
  color: var(--text-200);
  font-size: 0.9rem;
}

/* ===== SUCCESS BANNER STYLES ===== */
.success-banner {
  position: fixed;
  top: 100px;
  right: 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInRight 0.5s ease-out;
  border-left: 4px solid #047857;
}

.success-banner i {
  font-size: 24px;
  flex-shrink: 0;
}

.success-banner.fade-out {
  animation: slideOutRight 0.5s ease-in forwards;
}

/* Success Banner Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Success Banner Variants */
.success-banner.modern {
  background: white;
  color: #065f46;
  border: 1px solid #d1fae5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #10b981;
}

.success-banner.modern i {
  color: #10b981;
}

.success-banner.minimal {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.success-banner.minimal i {
  color: #10b981;
}

.success-banner.floating {
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-banner.with-close {
  padding-right: 50px;
  position: relative;
}

.success-banner .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.success-banner .close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.success-banner.with-progress {
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.success-banner .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  animation: progressBar 5s linear forwards;
}

.success-banner.modern .progress-bar {
  background: rgba(16, 185, 129, 0.3);
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

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

/* Large Tablet Styles */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 55% 45%;
    gap: 30px;
    padding: 0 15px;
  }

  .contact-form-container {
    padding: 30px;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .contact-hero {
    padding: 100px 0 60px;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-form-container {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-method {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .method-icon {
    align-self: center;
  }

  /* Phone extension adjustments for tablet */
  .phone-input-group {
    gap: 8px;
  }

  .country-code-select {
    flex: 0 0 100px;
  }

  .phone-extension-input {
    flex: 0 0 90px;
  }

  /* Success Banner Mobile */
  .success-banner {
    top: 80px;
    right: 15px;
    left: 15px;
    max-width: none;
    animation: slideInBottom 0.5s ease-out;
  }

  @keyframes slideInBottom {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .success-banner.fade-out {
    animation: slideOutTop 0.5s ease-in forwards;
  }

  @keyframes slideOutTop {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-100%);
      opacity: 0;
    }
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .contact-hero {
    padding: 80px 0 40px;
  }

  .contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .contact-hero p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .contact-section {
    padding: 40px 0;
  }

  .contact-container {
    padding: 0 10px;
    gap: 25px;
  }

  .contact-form-container {
    padding: 20px;
    margin: 0;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  /* Phone Input Group Mobile */
  .phone-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .country-code-select,
  .phone-number-input,
  .phone-extension-input {
    flex: 1;
    width: 100%;
  }

  .contact-method {
    padding: 15px;
    margin: 0;
  }

  .method-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .response-time {
    padding: 20px;
  }

  .response-time h3 {
    font-size: 1.1rem;
  }

  /* Success Banner Small Mobile */
  .success-banner {
    padding: 15px 20px;
    gap: 12px;
    right: 10px;
    left: 10px;
  }

  .success-banner i {
    font-size: 20px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-form-container {
    padding: 15px;
  }

  .contact-method {
    padding: 12px;
  }

  .phone-input-group select,
  .phone-input-group input {
    font-size: 14px;
    padding: 0 10px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }

  .contact-form-container {
    padding: 12px;
  }

  .contact-method {
    padding: 10px;
  }
}
