/* Contact page specific styling - Fully Responsive */
.contact-form-wrapper {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff, #f9f6ef);
  padding: 4% 3.5% 4.5%;
  border: 2px solid rgba(220,38,38,0.15);
  border-radius: 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  position: relative;
}

[data-theme="dark"] .contact-form-wrapper {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(220,38,38,0.4), rgba(212,175,55,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

#contact-form.skill-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.contact-form-grid {
  display: grid;
  gap: 2.5%;
}

.contact-form-grid .form-group {
  margin-bottom: 0;
}

.contact-form-grid .form-group label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2%;
  display: block;
}

.contact-form-grid input[type=text],
.contact-form-grid input[type=email],
.contact-form-grid input[type=tel],
.contact-form-grid textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid rgba(220,38,38,0.35);
  border-radius: 0.85rem;
  padding: 2% 3%;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-family: var(--body-font);
  color: var(--text-color);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

[data-theme="dark"] .contact-form-grid input[type=text],
[data-theme="dark"] .contact-form-grid input[type=email],
[data-theme="dark"] .contact-form-grid input[type=tel],
[data-theme="dark"] .contact-form-grid textarea {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(220, 38, 38, 0.4);
  color: #f3f4f6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.25);
  background: #fffdfa;
}

[data-theme="dark"] .contact-form-grid input:focus,
[data-theme="dark"] .contact-form-grid textarea:focus {
  background: rgba(31, 41, 55, 0.95);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.4);
}

/* Checkbox styling - Responsive */
.contact-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 3%;
  padding: 3% 4%;
  background: #ffffff;
  border: 2px solid rgba(220,38,38,0.25);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .contact-consent-box {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.contact-consent-box input[type=checkbox] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--red-primary);
  border: 2px solid var(--red-primary);
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-consent-box span {
  font-size: clamp(0.8rem, 1.8vw, 0.85rem);
  line-height: 1.4;
  color: var(--text-light);
}

/* Submit button spacing */
.contact-form-actions {
  margin-top: 3%;
}

.contact-form-actions .btn {
  padding: 3% 5%;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  max-width: 100%;
  box-sizing: border-box;
}

/* Map styles */
.map-container {
  position: relative;
}

.map-wrapper {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  border: 3px solid transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.map-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2.5rem rgba(220, 20, 30, 0.25);
  border-color: var(--red-primary);
}

.map-wrapper iframe {
  pointer-events: none;
  transition: transform 0.4s ease;
}

.map-wrapper:hover iframe {
  transform: scale(1.02);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 20, 30, 0.92), rgba(139, 0, 0, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.map-wrapper:hover .map-overlay {
  opacity: 1;
}

.map-overlay-content {
  text-align: center;
  color: white;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.map-wrapper:hover .map-overlay-content {
  transform: translateY(0);
}

.map-overlay-content i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s infinite;
}

.map-overlay-content span {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive adjustments */
@media (min-width: 900px) {
  .contact-form-wrapper { max-width: 55%; padding: 2.5rem 2.25rem 2.75rem; }
  .contact-form-grid { gap: 1.25rem; }
  .contact-consent-box { padding: 0.85rem 1rem; gap: 0.75rem; }
  .contact-form-actions { margin-top: 0.75rem; }
}

@media (max-width: 899px) {
  .contact-form-wrapper { padding: 3.5% 3%; }
  .contact-form-grid input,
  .contact-form-grid textarea { padding: 2.5% 3.5%; }
}

@media (max-width: 600px) {
  .contact-form-wrapper { padding: 5% 4%; max-width: 95%; }
  .contact-consent-box { padding: 4% 5%; }
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}


