/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* 
    GLOBAL STYLES
*/

#contactForm{
  /* Color palette and variables used */
  --color-primary: #243C57;
  --color-primary-hover: #095a91;
  --color-accent: #27AE60;
  --color-accent-submit: #27AE60;
  --color-accent-strong: #239e56;
  --color-surface: #F9F9F9;
  --color-surface-muted: #F9F9F9; 
  --color-text: #6A718D;
  --color-text-placeholder: #8c8888;
  --color-text-muted: #656565;
  --color-border: #6A718D;

  --font-family-base: "Red Hat Display", sans-serif;
  --font-family-heading: "Montserrat", "Inter", sans-serif;
  --font-family-messages: "Inter", sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 10px;
  --space-xl: 100px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 24px rgba(15,23,42,0.08);
}

/* -----------------------
  Main container
   ----------------------- */

#contactForm.contact-form,
.contact-form {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  /* max-width: 664px;  */
  /* background-color: blueviolet; */
  margin: 0 auto;   
  padding: var(--space-xl);
}


/* Column helpers */
.col-sm-6, .col-sm-12 {
  padding-left: 5px !important;
  padding-right: 5px !important;
  box-sizing: border-box;
}

/*--------------------
   Number Input     
----------------------*/

.iti__selected-country {
    background-color: transparent !important;
    padding: 0px !important;
    
    &:hover {
        padding: 0px !important;
        border-radius: none !important;
        border: none !important;
    }
}

.iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) button.iti__selected-country
Specificity: (0,5,3)
 {
    background-color: transparent !important;
    cursor: pointer;
    width: 20px !important;
}

.iti__selected-country-primary
Specificity: (0,1,0)
 {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: -20px !important;
    padding: 0px !important;
}

/* -----------------------
   Typography / labels
   ----------------------- */
.contact-form h2 {
  font-family: var(--font-family-base);
  font-weight: 500;
  color: var(--color-primary);
  font-size: 40px;
  line-height: 1;
  margin: 0 0 var(--space-md) 0;
}

.contact-form h3 {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 10px 0;
  line-height: 1;
}

.contact-form p {
  font-family: var(--font-family-base);
  font-size: 18px;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

.contact-form label {
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

/* -----------------------
   Fields (inputs / textarea / select)
   ----------------------- */
#contactForm.contact-form.form-control,
.contact-form.form-control,
#contactForm.contact-form input[type="text"],
#contactForm.contact-form input[type="email"],
#contactForm.contact-form input[type="tel"],
#contactForm.contact-form select,
#contactForm.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 15px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface-muted);
  border: 3px solid var(--color-border) !important;
  border-radius: 10px;
  margin-bottom: var(--space-md);
  outline: none;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

#form-control-subject{
  height: 44px;
}

/* Placeholder color */
#contactForm.contact-form .form-control::placeholder,
.contact-form .form-control::placeholder {
  color: var(--color-text-placeholder);
}

/* Focus state */
#contactForm.contact-form .form-control:focus,
.contact-form .form-control:focus {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border-color: var(--color-primary);
}

#PhoneSelected {
  display: none;
}

.validateInput {
  display: block;
  color: #e30c61;
  font-size: 12px;
  margin-top: -8px;
  margin-bottom: 8px;
}

/* -----------------------
   Button and button container
   ----------------------- */
.content-btn{
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
  justify-content: end;
}


/* Main button (submit / btn-action) */
#contactForm.contact-form button[type="submit"],
#contactForm.contact-form .btn-action,
.contact-form button[type="submit"],
.contact-form .btn-action {
  width: 304px;
  padding: 10px 20px;
  margin-top: 41px;
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  background-color: var(--color-accent-submit);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
   &:hover {
    border: 5px solid var(--color-primary) !important;
  }

  &:focus {
    outline: none !important;
    border: 5px solid var(--color-primary) !important;
  }
  
}

/* Hover / focus button */
#contactForm.contact-form button[type="submit"]:hover,
#contactForm.contact-form .btn-action:hover {
  background-color: var(--color-accent-strong);
}

/* -----------------------
   Intl-tel-input plugin 
   ----------------------- */
.iti__selected-country {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

/* -----------------------
   Messages / responses 
   ----------------------- */
#formResponse,
#formResponseSuccess,
#formResponseEmail {
  margin-top: var(--space-md);
  max-width: 100%;
}

/* Message blocks and colors (kept minimal) */
.notice { background-color: rgba(19,125,197,0.08); }
.success { background-color: rgba(60,221,95,0.08); }
.warning { background-color: rgba(245,121,59,0.08); }
.error { background-color: rgba(240,42,42,0.08); }

.notice_color { color: #137DC5 !important; }
.success_color { color: #3CDD5F !important; }
.warning_color { color: #F5793B !important; }
.error_color { color: #F02A2A !important; }

.message_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 16px;
}

.message-paragraph {
    text-align: left;
}

/* .ResponseMessage {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
} */

.message_icon{
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 23px;
    float: left;
    display: flex;
    justify-content: center; 
    align-items: center;      
    width: 21px;             
    height: 21px;    
    font-size: 20px;       
    border-radius: 100%;
    text-align: center; 
}

.message-paragraph {
  text-align: left;
}

.message_rectangle{
    border-radius: 12.86px 0px 0px 12.86px;
    height: 100%;
    width: 15px;
    float: left;
}

.ResponseMessage{
    margin-top: 10px;
    width: 100%;
    height: 70px;
    overflow: auto;
    border-radius: 12.86px;
}

.message-paragrah{
    text-align: left;
}

.text-message{
    position: relative;
    display: block;
    text-align: left;
    padding: 0px 30px 0px 5px;
    color: #757474;
    font-family: var(--font-family-messages);
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    margin-top: 10px;
    margin-left: -1px;
    max-width: 400px;
}

.bold-message{
    position: relative;
    top: 10px;
    color: #484848;
    font-family: var(--font-family-messages);
    line-height: 11.85px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 30px;
    margin-left: 0px;
}


.exit-message {
    font-family: sans-serif;
    position: relative;
    float: right;
    color: rgba(117, 116, 116, 0.74) !important;
    top: 17px;
    left: -20px;
    border: none;
    background: none !important;
    font-weight: 400;
    font-size: 20px;
    outline: none;
    box-shadow: none !important;
}

/* text inside message */
.text-message {
  color: #757474;
  font-family: var(--font-family-messages);
  font-size: 0.875rem;
  line-height: 1.2;
}

.bold-message {
  color: #484848;
  font-family: var(--font-family-messages);
  font-weight: 700;
  font-size: 0.95rem;
}

/* -----------------------
  Phone and layout helpers referenced in HTML
   ----------------------- */

#Phone,
#contactForm.contact-form .form-control#Phone,
.contact-form #Phone {
  width: 100% !important;         
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 56px !important;  
  padding-right: 14px !important;
  height: 44px !important;        
}

/* If you use intl-tel-input: make its wrapper occupy 100% */
.iti, .iti__container {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Adjust the flag/dial code inside the wrapper */
.iti__flag-container,
.iti__selected-dial-code,
.iti__selected-country {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

/* Ensure the input is offset so it doesn't cover the flag */
.iti input, .iti__country-list + input, #Phone {
  padding-left: 56px !important; 
}

/* VALIDATION: red borders and error messages */
.noValid {
  border: 1px solid #e30c61 !important;
  box-shadow: none !important;
  background-color: #fff6fb !important; 
}

#contactForm.contact-form .validateInput,
.contact-form .validateInput {
  display: block;
  color: #e30c61;
  font-size: 12px;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 8px;
}

.row span.validateInput {
  display: block;
  color: #e30c61;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 3px;
}

/* focus of invalid field */
.noValid:focus {
  outline: 2px solid rgba(227, 12, 97, 0.12) !important;
  background-color: #fff6fb !important;
}

/* -----------------------
  Responsive
   ----------------------- */

/* Ensure fields occupy 100% of the container width by default */
#contactForm.contact-form .form-control,
.contact-form .form-control,
#contactForm.contact-form textarea,
#contactForm.contact-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Breakpoint: tablet / phone — stack everything vertically */
@media (max-width: 1024px) {
  #contactForm {
    width: 600px;
  }

  #contactForm.contact-form,
  .contact-form {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* On small screens stack columns and buttons */
@media (max-width: 768px) {
  /* Ensure fields occupy 100% of the container width by default */
  #contactForm.contact-form .form-control,
  .contact-form .form-control,
  #contactForm.contact-form textarea,
  #contactForm.contact-form select {
    width: 100%;
    max-width: 150%;
    box-sizing: border-box;
  }

  #contactForm {
    width: 500px;
  }

  .contact-form .row {
    display: block !important;
    margin: 0;
  }

  .contact-form .col-sm-6,
  .contact-form .col-sm-12,
  .contact-form .col,
  .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% ;
}

#contactForm.contact-form button[type="submit"],
#contactForm.contact-form .btn-action,
.contact-form button[type="submit"],
.contact-form .btn-action {
  width: 100%;
  padding: 10px 10px;
  font-size: 18px;
}

}