@charset "UTF-8";
/* ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


	OPEX Management Consultancy Service

	About:  Empowering students, professionals, and organizations through Lean, Risk, and Continuity—delivered via training, advisory, and strategic execution.

	We’re a principle-led management consultancy specializing in Lean Six Sigma, Business Continuity, and Integrated Risk Solutions—delivered through structured training, strategic implementation, and value-driven advisory.

	Whether you're a student, professional, or enterprise leader, our programs foster advancement through measurable results, practical application, and transformation-ready thinking.

	From certification training and feasibility analysis to safety-aligned optimization and technical strategy—we equip learners and leaders to navigate complexity with confidence and purpose.
	
	Author: Ricardo Pablo Rabang. Principal Consultant, ricardo.rabang@opex.ph

	Developer: Cross-Functional Advisor | Strategic Design & Technical Oversight, tech@opex.ph

	contact-form.css

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

.subheadline-form {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgb(var(--butter-gleam));
  font-weight: 600;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-top: 0.5rem;
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);  
  letter-spacing: 0.02em;
}

.form-label {
  color: rgb(var(--butter-gleam));
  font-weight: 600;
}

.space-bottom {
  margin-bottom: clamp(1rem, 2vh, 1.5rem);     
}


.space-top {
  margin-top:0;
}

#form-message {
  display: none; /* Hidden by default */
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 600px;
  transition: all 0.3s ease;
}

.success-text {
  background-color: #e6f4ea;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.error-text {
  background-color: #fbeaea;
  color: #c62828;
  border: 1px solid #f5c6cb;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 20px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 250px;
}

label {
  margin-bottom: 5px;
  color: rgb(var(--anti-flash-white));
  font-weight: 400;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgb(var(--light-gray));
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color:  rgb(var(--absolute-white));
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgb(var(--absolute-white));
  box-shadow: 0 0 5px rgba(var(--absolute-white), 0.5);
}

input::placeholder, textarea::placeholder {
  /* color: rgba(255, 255, 255, 0.6); */
  color: rgba(var(--absolute-white), 0.6);
}

.profile-select-container {
  display: flex;
  flex-direction: column;
}

.profile-select-container select {
  margin-bottom: 10px;
}

#other-profile-container {
  display: none;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

input[type="checkbox"] {
  width: 12px;
  height: 12px;
  border: 1px solid rgb(var(--anti-flash-white));
  background-color: rgb(var(--oxford-blue));
  position: relative;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

input[type="checkbox"]:focus {
  border-color: rgb(var(--error-red));
  box-shadow: 0 0 0 2px rgb(var(--error-red));
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Revise the .section-1-grid container to properly hold two columns */
.section-1-grid-form {
  display: grid;
}

.columns {
  flex: 1;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid rgb(var(--anti-flash-white));
  border-radius: 3px;
  /* background-color: rgb(var(--oxford-blue)); */
  position: relative;
  cursor: pointer;
  /* box-shadow: 0 2px 4px rgb(var(--moonstone-gray));
  box-shadow: 0 1px 1px rgb(var(--moonstone-gray)); */
  box-shadow: 0 2px 2px rgb(var(--graphite-mist));
}

.checkbox-item label {
  cursor: pointer;         /* Makes the label clickable—great for UX */
  user-select: none;       /* Prevents accidental text selection */
}

/* This targets the pseudo-element ::before of a checkbox only when it’s checked. It’s used to draw the checkmark or any visual indicator of selection. */
.checkbox-item input[type="checkbox"]:checked {
  background-color: rgb(var(--success-green));
  border: 1px solid rgb(var(--lilac-soft));
}

.checkbox-item input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 0.5px;
  left: 4px;
  width: 4px;
  height: 10px;
  text-align: center;
  /*
  border: solid rgb(var(--azure-radiance));
  top: 1px;
  width: 6px;
  height: 12px;
  */
  border: solid rgb(var(--lilac-soft));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.recaptcha-placeholder {
  min-height: 78px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.button-container {
  text-align: center;
}

.submit-button  {
  font-size: 1em;
  color: rgb(var(--white-smoke));
  background-color: rgb(var(--azure-radiance));
  padding: 0.75rem 1.5rem;
  display: inline-block;
  text-decoration: none;
  width: 30%;
  box-sizing: border-box;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  vertical-align: middle;
  line-height: normal;
  border-color: rgb(var(--azure-radiance));
  /* transition: background-color 0.3s ease; */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.submit-button:hover {
  color: rgb(var(--absolute-black));
  background-color: rgb(var(--sky-blue-crayola));
  border-color:  rgb(var(--sky-blue-crayola));
  font-weight: 500;
}

.other-contact {
  margin-top: 20px;
  padding: 20px;
  background-color: rgb(var(--oxford-blue));
  color: rgb(var(--absolute-white));  
  border-radius: 10px;
  text-align: center;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

.other-contact a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.other-contact a:hover {
  text-decoration: underline;
}

/* original
.contact-details {
  background: linear-gradient(
    45deg,
    rgb(var(--lilac-soft)) 0%,
    rgb(var(--iris-bold)) 25%,
    rgb(var(--iris-bold)) 75%,
    rgb(var(--lilac-soft)) 100%
  );
  padding: 0.5em 1em;
  font-size: 0.85em;
}
*/  

.contact-details {
  /*
  background: linear-gradient(to right, rgb(var(--iris-bold)), rgb(var(--iris-bold-40))); /* Gradient flows like legacy—bold to soft iris 
  */
    background: linear-gradient(to right, rgb(var(--iris-bold)), rgb(var(--iris-bold-70))); /* Gradient flows like legacy—bold to soft iris */
  padding: 0.5em 1em;
  font-size: 0.85em;
}

.contact-details-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-details-text {
  color: rgb(var(--lilac-soft));
}

.contact-details a {
  color: rgb(var(--lilac-soft));
  text-decoration: none;
  font-weight: 500;
  transition: font-weight 0.2s ease;
}

.contact-details a:hover {
  font-weight: 600;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 2em; /* spacing between items */
  font-size: 0.95em;
  color: rgb(var(--lilac-soft));
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5em; /* spacing between icon and text */
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: rgb(var(--lilac-soft));
  font-weight: 500;
  transition: font-weight 0.2s ease;
}

.contact-email:hover {
  font-weight: 600;
}

.icon-email {
  width: 1em;
  height: 1em;
  display: inline-block;
}

.contact-url,
.contact-post {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: rgb(var(--lilac-soft));
  font-weight: 500;
  transition: font-weight 0.2s ease;
}

.contact-url:hover,
.contact-post:hover {
  font-weight: 600;
}

/* Responsive design */
/* Extra Small (XS) */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 10px; /* Reduced gap for smaller screens */
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 100%;
  }
  .submit-button {
    width: 100%;
  }
  .checkbox-group > div {
    margin-bottom: 0px;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 0;
  }
  .checkbox-item {
    margin-bottom: 5px;
  }
  .checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
  }
  .contact-details {
    /* background: rgb(var(--iris-bold)); */
    background: linear-gradient(to right, rgb(var(--iris-bold)), rgb(var(--iris-bold-70))); /* Gradient flows like legacy—bold to soft iris */
    padding: 1em;
    font-size: 0.9em;
  }
  .contact-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-line {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: 100%;
  }
  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
  }
}

/* Small (SM) */
@media (min-width: 481px) and (max-width: 767px) {
  .form-row {
    flex-direction: column;
    gap: 10px; /* Reduced gap for smaller screens */
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 100%;
  }
  .submit-button {
    width: 100%;
  }
  .checkbox-group > div {
    margin-bottom: 0px;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 0;
  }
  .checkbox-item {
    margin-bottom: 5px;
  }
  .checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
  }
  .contact-details {
    /* background: rgb(var(--iris-bold)); */
    background: linear-gradient(to right, rgb(var(--iris-bold)), rgb(var(--iris-bold-70))); /* Gradient flows like legacy—bold to soft iris */
    padding: 1em 1.5em;
    font-size: 0.9em;
  }
  .contact-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-line {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    width: 100%;
  }
  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
  }
}

/* Medium (MD) */
@media (min-width: 768px) and (max-width: 1023px) {
  .form-row {
    flex-direction: row;
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 50%;
  }
  .submit-button {
    width: 50%;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 20px;
  }
  .section-1-grid-form {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact-line {
    flex-direction: row;
    gap: 1.5em;
  }
}

/* Large (LG) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .form-row {
    flex-direction: row;
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 50%;
  }
  .submit-button {
    width: 40%;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 20px;
  }
  .section-1-grid-form {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact-line {
      gap: 2em;
    }
}

/* Extra Large (XL) */
@media (min-width: 1280px) and (max-width: 1599px) {
  .form-row {
    flex-direction: row;
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 50%;
  }
  .submit-button {
    width: 30%;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 20px;
  }
  .section-1-grid-form {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
    .contact-line {
    gap: 2.5em;
  }
}

/* Ultra Wide (XXL) */
@media (min-width: 1600px) {
  .form-row {
    flex-direction: row;
  }
  .form-field, .checkbox-group {
    min-width: unset;
    width: 50%;
  }
  .submit-button {
    width: 30%;
  }
  .checkbox-group > div:not(:last-child) {
    margin-right: 20px;
  }
  .section-1-grid-form {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact-line {
      gap: 3em;
      font-size: 1em;
  }
  .contact-details {
      padding: 1em 2em;
  }
}

/* Simplify the .checkbox-item to remove centering properties */
.checkbox-item {
  display: flex;
  align-items: center; /* Vertically align the checkbox and its label */
  gap: 12px;
  color: rgb(var(--lilac-soft));
  font-weight: 500;
}

#other-profile-container.form-field {
    min-width: unset;
}

#other-profile-container input[type="text"] {
    width: 100%;
}

/* This new rule ensures the "Other" container always takes up the full width, 
   regardless of screen size, by overriding the generic .form-field width rules. */
#other-profile-container {
    flex: 0 0 100%;
    width: 100%;
    min-width: unset;
}

/* Shared filled state for any element */
.filled {
  /* original
  background-color: #fff !important;
  */
  background-color: rgb(var(--lilac-soft)) !important;
  color: #000 !important;
}

/* Specific overrides */
input.filled {
  /* original
  background-color: #fff !important;
  */
  background-color: rgb(var(--lilac-soft)) !important;
  color: #000 !important;
}

select.filled {
  /* original
  background-color: #fff !important;
  */
  background-color: rgb(var(--lilac-soft)) !important;
  color: #000 !important;
}

textarea:not(:placeholder-shown) {
  background-color: #fff !important;
  color: #000 !important;
}

.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white; /* Completed line */
  color: black; /* Completed line */
  padding: 1.5rem 2rem; /* Completed line */
  border-radius: 10px; /* Completed line */
  box-shadow: 0 0 30px rgba(0,0,0,0.3); /* Completed line */
  z-index: 9999;
  max-width: 90%; /* Completed line */
  width: 400px; /* Completed line */
  text-align: center; /* Completed line */
  font-family: inherit; /* Completed line */
  
  /* SOLUTION: Set initial state to completely off-page */
  opacity: 0; /* Keep for the transition effect */
  display: none; /* Crucial: ensures it doesn't block clicks */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.show {
  /* SOLUTION: Restore display only when it needs to be visible */
  display: block; /* Use 'flex' if inner content needs 'flex' */
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.alert--success {
  border-left: 6px solid #28a745;
}

.alert--failure {
  border-left: 6px solid #dc3545;
}

#custom-alert[data-tone="joyful"] {
  border-left: 4px solid #4CAF50;
  background-color: #f0fff4;
}

#custom-alert[data-tone="failure"] {
  border-left: 4px solid #e63946;
  background-color: #fff5f5;
}

.alert-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end; /* Align OK to the right */
  gap: 1rem;
}

.alert-buttons button {
  flex: 1 1 0;
  min-width: 100px;
  padding: 0.5rem 1rem;
  color: rgb(var(--white-smoke));
  background-color: rgb(var(--azure-radiance));
  font-size: 1em;
  display: inline-block;
  text-decoration: none;
  border-radius: 5px;
  border-color: rgb(var(--azure-radiance));
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.alert-buttons button:hover {
  color: rgb(var(--absolute-black));
  background-color: rgb(var(--sky-blue-crayola));
  border-color:  rgb(var(--sky-blue-crayola));
}

.hidden {
  display: none !important;
}

.wait-cursor {
  cursor: wait !important;
}