/* === Contact Form Layout === */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 3em;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

/* Top row with Name and Email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin-bottom: 1.5em;
}

/* Second row with Phone and Subject */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin-bottom: 1.5em;
}

/* Full-width elements */
.form-full-width {
  margin-bottom: 1.5em;
}

/* Form field containers */
.form-field {
  display: flex;
  flex-direction: column;
}

/* Labels */
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #4B004B;
  font-size: 1.1rem;
  margin-top: 0;
}

/* Required and Optional Field Indicators */
.required {
  color: #e91e63;
  font-weight: bold;
  margin-left: 2px;
}

.optional {
  color: #757575;
  font-weight: normal;
  font-size: 0.9rem;
  font-style: italic;
}

/* Input fields */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1em;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  margin-top: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9c27b0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

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

/* Opt-in Checkboxes */
.opt-in-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.opt-in-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: #2C2C2C;
  cursor: pointer;
  background-color: rgba(156, 39, 176, 0.05);
  padding: 1em 1.5em;
  border-radius: 12px;
  line-height: 1.4;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 0;
}

.opt-in-group label:hover {
  background-color: rgba(156, 39, 176, 0.1);
  border-color: rgba(156, 39, 176, 0.2);
}

.opt-in-group input[type="checkbox"] {
  width: auto !important;
  accent-color: #9c27b0;
  transform: scale(1.3);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  padding: 0;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
  padding: 1em 3em;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s ease;
  display: block;
  margin: 2em auto 0;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
  background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .form-row,
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  
  .contact-form {
    padding: 2em 1.5em;
    margin: 0 1em;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5em 1em;
  }
}

/* === Modal Popup Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-modal {
    margin-top: 20px;
    padding: 10px 30px;
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}