#demo .demo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    background-image: url(./img/about-us.png);
    background-size: cover;
    background-position: 50% 50%;
}

#demo .demo-breadcrum {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    position: relative;
    flex: 0 0 auto;
    background-color: #ffffff80;
    border-radius: 24px;
    backdrop-filter: blur(10px) brightness(100%);
    -webkit-backdrop-filter:
        blur(10px) brightness(100%);
}

#demo .demo-text-wrapper {
    position: relative;
    width: fit-content;
    margin-top: -1.00px;
    font-family: var(--ERP-REG-2-font-family);
    font-weight: var(--ERP-REG-2-font-weight);
    color: var(--erp-blk);
    font-size:
        var(--ERP-REG-2-font-size);
    letter-spacing: var(--ERP-REG-2-letter-spacing);
    line-height: var(--ERP-REG-2-line-height);
    white-space: nowrap;
    font-style: var(--ERP-REG-2-font-style);
}

#demo .demo-div {
    position: relative;
    width: fit-content;
    margin-top: -1.00px;
    font-family: var(--ERP-REG-2-font-family);
    font-weight: var(--ERP-REG-2-font-weight);
    color:
        var(--erp-primary);
    font-size: var(--ERP-REG-2-font-size);
    letter-spacing: var(--ERP-REG-2-letter-spacing);
    line-height:
        var(--ERP-REG-2-line-height);
    white-space: nowrap;
    font-style: var(--ERP-REG-2-font-style);
}

#demo .demo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 40px;
    position: relative;
    align-self: stretch;
    width:
        100%;
    flex: 0 0 auto;
}

#demo .demo-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

#demo .demo-p {
    position: relative;
    align-self: stretch;
    margin-top:
        -1.00px;
    font-family: "Outfit-Light", Helvetica;
    font-weight: 300;
    color: var(--vms-blk);
    font-size: 24px;
    letter-spacing: 0;
    line-height: normal;
}

#demo .demo-div-2 {
    display: flex;
    flex-direction: column;
    align-items:
        flex-start;
    gap: 16px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

#demo .demo-frame-2 {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

#demo .demo-div-3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    flex:
        1;
    flex-grow: 1;
}

#demo .demo-div-4 {
    position: relative;
    align-self: stretch;
    height: 24px;
    margin-top: -1.00px;
    font-family: "Open Sans-Regular", Helvetica;
    font-weight: 400;
    color: transparent;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

#demo .demo-span {
    color: #000000;
}

#demo .demo-text-wrapper-2 {
    color:
        #da1818;
}

#demo .demo-input-field-first {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 66px;
    margin-bottom: -1.00px;
    margin-left: -1.00px;
    margin-right: -1.00px;
    background-color: var(--vms-white);
    border-radius:
        8px;
    border: 1px solid;
    border-color: var(--vms-blk);
}

#demo .demo-company-business {
    position: relative;
    align-self:
        stretch;
    margin-top: -1.00px;
    font-family: "Open Sans-Regular", Helvetica;
    font-weight: 400;
    color: transparent;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

#demo .demo-text-wrapper-3 {
    position: relative;
    align-self:
        stretch;
    margin-top: -1.00px;
    font-family: "Open Sans-Regular", Helvetica;
    font-weight: 400;
    color: var(--vms-blk);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

#demo .demo-vmsinput-mail {
    display: flex;
    flex-direction:
        column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

#demo .demo-frame-3 {
    display:
        flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

#demo .demo-vector-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

#demo .demo-vector {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 1px;
    left: 1px;
}

#demo .demo-text-wrapper-4 {
    position: relative;
    flex: 1;
    font-family: "Outfit-Medium", Helvetica;
    font-weight: 500;
    color: var(--whitewhiteshade-8);
    font-size: 12px;
    letter-spacing: 0;
    line-height: 20px;
}

#demo .demo-frame-wrapper {
    display: flex;
    height: 66px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    position: relative;
    align-self: stretch;
    width: 100%;
    margin-bottom: -1.00px;
    margin-left: -1.00px;
    margin-right: -1.00px;
    background-color: var(--vms-white);
    border-radius:
        8px;
    overflow: hidden;
    border: 1px solid;
    border-color: var(--vms-blk);
}


#demo .demo-img {
    position: absolute;
    width: auto;
    height: 30px;

	
 
}

#demo .demo-input-field-first-2 {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 122px;
    margin-bottom: -1.00px;
    margin-left: -1.00px;
    margin-right: -1.00px;
    background-color:
        var(--vms-white);
    border-radius: 8px;
    border: 1px solid;
    border-color: var(--vms-blk);
}

#demo .demo-VMS-BUTTON-TYPE-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 32px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

#demo .demo-VMS-BUTTON-TYPE {
    display: flex;
    width: 149px;
    height:
        48px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 40px;
    position: relative;
    background-color:
        var(--vms-primary-1);
    border-radius: 8px;
    overflow: hidden;
}

#demo .demo-register {
    position: relative;
    width:
        fit-content;
    margin-top: -1.00px;
    margin-left: -23.00px;
    margin-right: -23.00px;
    font-family: "Outfit-Bold", Helvetica;
    font-weight: 700;
    color: var(--erp-white-3);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    white-space: nowrap;
}

#demo .demo-hero-texts {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    height: 600px;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    position: relative;
    flex: 1;
    flex-grow: 1;
    background-color:
        #ffffff4c;
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px) brightness(100%);
    -webkit-backdrop-filter:
        blur(10px) brightness(100%);
    overflow-x: scroll;
}

#demo .demo-hero-texts::-webkit-scrollbar {
    width: 0;
    display: none;
}

#demo .demo-frame-4 {
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    object-fit: cover;
}

/* Original CSS code should be injected here */
/* Additional styles for form accessibility and functionality */

#demo .demo-error-message {
	
     display: block;         /* Always take up space */
  visibility: hidden;     /* Hidden unless needed */
  min-height: 18px;       /* Reserve space – match your font size + spacing */
    color: var(--vms-red);
    font-size: 12px;
    margin-top: 4px;
    font-family: "Open Sans-Regular", Helvetica; 
 }
 

#demo .demo-sr-only { position: absolute;
 width: 1px; 
 height:1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animate error message */
#demo .demo-error-message {
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

#demo .demo-error-message.show {
   visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#demo .demo-input-field-first,
#demo .demo-input-field-first-2 {
    padding: 16px;
    font-family: "Open Sans-Regular", Helvetica;
    font-size: 16px;
    color: var(--vms-blk);
    outline: none;
    transition: border-color 0.2s ease;
}

#demo .demo-input-field-first:focus,
#demo .demo-input-field-first-2:focus {
    border-color: var(--vms-primary-1);
    box-shadow: 0 0 0 2px rgba(0, 111, 181, 0.1);
}

#demo .form-submitted .demo-input-field-first:invalid:not(:focus):not(:placeholder-shown),
#demo .form-submitted .demo-input-field-first-2:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--vms-red);
}
#demo .form-submitted #phone:invalid:not(:focus):not(:placeholder-shown),
#demo .form-submitted #industry:invalid:not(:focus) {
    border-color: var(--vms-red);
}
/* ✅ Green border for valid fields (after form submission attempt) */
#demo .form-submitted input:valid,
#demo .form-submitted select:valid {
  border-color: #28a745; /* Bootstrap green */
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2); /* soft green glow */
}


#demo .demo-industry-select {
   appearance: none;
  background-color: var(--vms-white);
  border: 1px solid var(--vms-blk);
  border-radius: 8px;
  height: 66px;
  padding: 0 40px 0 16px;
  font-size: 16px;
  color: var(--vms-blk);
  width: 100%;
  cursor: pointer;
  background-image: url("img/form.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

#demo .demo-industry-select:focus+.vector-wrapper {
   transform: scaleY(1.05);
  box-shadow: 0 0 0 2px rgba(0, 111, 181, 0.1); /* same as input focus */
  border-color: var(--vms-primary-1);
}

#demo .demo-frame-wrapper {
    position: relative;
}

#demo .demo-VMS-BUTTON-TYPE {
    cursor:
        pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

#demo .demo-VMS-BUTTON-TYPE:hover {
    background-color: var(--vms-primary-2);
    transform: translateY(-1px);
}

#demo .demo-VMS-BUTTON-TYPE:active {
    transform:
        translateY(0);
}

#demo .demo-VMS-BUTTON-TYPE:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive
adjustments */
@media (max-width: 768px) {
    #demo .demo {
        padding: 16px 24px;
    }

    #demo .demo-frame-2 {
        flex-direction: column;
        gap:
            16px;
    }

    #demo .demo-inner {
        flex-direction: column;
        gap: 24px;
    }

    #demo .demo-hero-texts {
        min-height: 300px;
        height: auto;
    }
}

/* Tablet and mobile */
@media (max-width: 768px) {
    #demo .demo {
        padding: 16px 24px;
    }

    /* Stack form and preview image vertically */
    #demo .demo-inner {
        flex-direction: column;
        gap: 24px;
    }

    /* Stack all input rows vertically */
    #demo .demo-frame-2 {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    /* Form fields full width on mobile */
    #demo .demo-div-3,
    #demo .demo-vmsinput-mail,
    #demo .demo-frame-wrapper,
    #demo .demo-input-field-first,
    #demo .demo-input-field-first-2,
    #demo .demo-industry-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Make button full width */
    #demo .demo-VMS-BUTTON-TYPE {
        width: 100%;
        justify-content: center;
    }

    /* Adjust hero-text image for mobile */
    #demo .demo-hero-texts {
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 16px;
    }

    #demo .demo-hero-texts img.demo-frame-4 {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
	/* Center heading text above the form */
    #demo .demo-frame {
        order: -1; /* Move text to top */
        width: 100%;
        text-align: center;
        align-items: center;
    }

    #demo .demo-p {
        font-size: 18px;
        line-height: 26px;
        text-align: center;
        margin-bottom: 16px;
    }
	#demo .demo-img {
    position: absolute;
    width: auto;
    height: 30px;
    right: 3px;
}
}

/* Small phones */
@media (max-width: 480px) {
    #demo .demo {
        padding: 16px;
    }

    #demo .demo-p {
        font-size: 18px;
        line-height: 24px;
        text-align: center;
    }
}


.form:invalid .demo-input-field-first,
.form:invalid .demo-input-field-first-2 {
    border-color: var(--vms-blk); /* or your default */
}

#demo #email-warning {
  display: none;
}
