/*-------------------------------------------------
                   ROOT VARIABLES
-------------------------------------------------*/
:root {
  --primary-blue: #0052cc;
  --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
  --bg-light: #f8fafc;
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
  --success-bg: #ecfdf3;
  --success-text: #166534;
  --error-bg: #fef2f2;
  --error-text: #b91c1c;
}

/*-------------------------------------------------
                  RESET & GLOBAL
-------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, p {
  word-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/*-------------------------------------------------
                    HERO SECTION
-------------------------------------------------*/
.hero-section {
  background: var(--hero-gradient);
  color: var(--white);
  padding: 90px 16px 110px;
  text-align: center;
}

.hero-container {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto;
}

/*-------------------------------------------------
                 CONTACT MAIN SECTION
-------------------------------------------------*/
.contact-section {
  background: var(--bg-light);
  padding: 40px 16px 90px;
  margin-top: -55px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.contact-card-header {
  padding: 32px 32px 18px;
  border-bottom: 1px solid var(--border-color);
}

.contact-card-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.contact-card-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/*-------------------------------------------------
                    CONTACT FORM
-------------------------------------------------*/
.contact-form {
  padding: 28px 32px 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group label span,
.form-check label span {
  color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.08);
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-group select {
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/*-------------------------------------------------
                   CHECKBOX AREA
-------------------------------------------------*/
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary-blue);
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.6;
}

/*-------------------------------------------------
                    BUTTON / STATUS
-------------------------------------------------*/
.submit-btn {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--hero-gradient);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(0, 82, 204, 0.18);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 82, 204, 0.22);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 24px;
}

.form-status.success {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  padding: 12px 14px;
  border-radius: 12px;
}

.form-status.error {
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*-------------------------------------------------
                    PRIVACY BOX
-------------------------------------------------*/
.privacy-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.privacy-box h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #1d4ed8;
}

.privacy-box p {
  color: #334155;
  font-size: 0.94rem;
}

/*-------------------------------------------------
                  SIDE PANEL CARDS
-------------------------------------------------*/
.contact-side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.side-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.side-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.side-card ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
  position: absolute;
  left: 0;
  top: 9px;
}

/*-------------------------------------------------
      SEO / WHY USE CONTACT FORM SECTION
-------------------------------------------------*/
.contact-seo-section {
  padding: 100px 16px;
  background: var(--white);
}

.seo-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.seo-container h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.seo-container p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.seo-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.seo-benefit-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.seo-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 82, 204, 0.15);
}

.seo-benefit-card i {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 82, 204, 0.08);
  color: var(--primary-blue);
  border-radius: 50%;
  font-size: 1.3rem;
}

.seo-benefit-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.seo-benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/*-------------------------------------------------
                    RESPONSIVE
-------------------------------------------------*/
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-side-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seo-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    margin: 0 20px;
  }

  .hero-section {
    padding: 75px 16px 95px;
  }

  .contact-section {
    padding-bottom: 70px;
  }

  .contact-card-header,
  .contact-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .seo-benefits {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.96rem;
  }

  .contact-card {
    border-radius: 16px;
  }

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

  .side-card {
    padding: 20px;
  }

  .submit-btn {
    min-height: 54px;
  }
}