/* hubformstyle.css */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');

@font-face {
    font-family: lufga;
    src: url('/assest/fonts/lufga/LufgaBold.ttf');
}

#hubspot-multistep-form {
    max-width: 100%;
    margin: 40px auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "M PLUS 1", sans-serif;
    padding: 0;
    box-sizing: border-box;
}

.hwtogetstarted {
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1%;
}

.yr_heading {
    font-size: 40px;
    font-weight: 700;
    color: #222222;
    padding: 50px 0 30px;
    margin: 0 auto;
    width: 100%;
    font-family: lufga;
    text-align: center;
}

.progress-container,.progress-head-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 675px;
}
.progress-head-cont p{
    margin-bottom: 0 !important;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1%;
}
.progress-head-cont{
    margin-bottom: 0px;
}

.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #222222;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.progress-step {
    text-align: center;
    font-size: 15px;
    color: #222222;
    font-weight: 500;
    margin-top: 10px;
}

.main-container {
    padding: 30px;
    max-width: 100%;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
}

.step-title {
    font-size: 40px;
    font-weight: 700;
    color: #222222;
    padding: 50px 0 30px;
    max-width: 675px;
    margin: 0 auto;
    width: 100%;
    font-family: lufga;
}

.radio-wrapper,
.checkbox-wrapper {
    display: grid;
    gap: 13px;
    margin-bottom: 25px;
    max-width: 675px;
    width: 100%;
    margin: 0 auto 80px;
    grid-template-columns: repeat(2,1fr);

}

.radio-box,
.checkbox-box {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 30px 25px;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 16px;
    text-align: left;
}

.radio-box input[type="radio"],
.checkbox-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
}

.radio-box .radio-btn-circle,
.checkbox-box .checkbox-btn-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #6c757d;
    background-color: #fff;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.radio-box .radio-btn-circle {
    border-radius: 50%;
}

.checkbox-box .checkbox-btn-box {
    border-radius: 0px;
    border: 1.5px solid #6c757d;
}

.radio-box input[type="radio"]:checked ~ .radio-btn-circle,
.checkbox-box input[type="checkbox"]:checked ~ .checkbox-btn-box,
.checkbox-item input[type="checkbox"]:checked ~ .checkbox-btn-box {
    border-color: #E7402E;
}

.radio-box input[type="radio"]:checked ~ .radio-btn-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #E7402E;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s ease;
}

.checkbox-box input[type="checkbox"]:checked ~ .checkbox-btn-box::after,
.checkbox-item input[type="checkbox"]:checked ~ .checkbox-btn-box::after{
    content: '✓';
    color: #E7402E;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.radio-box.active,
.checkbox-box.active,
.radio-box:has(input[type="radio"]:checked),
.checkbox-box:has(input[type="checkbox"]:checked) {
    border-color: #E7402E;
    background-color: #E7402E;
    color: white;
}

.radio-box.active .radio-btn-circle,
.checkbox-box.active .checkbox-btn-box {
    background-color: white;
    border-color: #E7402E;
}

.radio-box.active .radio-content,
.checkbox-box.active .checkbox-content {
    color: white;
}

.buttons {
    display: flex;
    gap: 13px;
    padding-top: 40px;
    width: 100%;
    margin: 0 auto;
    justify-content: start;
    max-width: 675px;
}

.next-step{
      padding: 16px 20px;
    cursor: pointer;
    background-color: #E7402E;
    color: white;
    transition: all 0.3s;
    display: block;
    width: 50%;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid;
}
.submit-registration {
    padding: 16px 20px;
    cursor: pointer;
    background-color: white;
    color: black;
    transition: all 0.3s;
    display: block;
    width: 50%;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid;
}

.back-step {
    background-color: transparent;
    color: #000;
    border: 1px solid #ccc;
    padding: 16px 20px;
    width: 50%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
     transition: all 0.3s;
}

.next-step:hover,.next-step:focus {
    background-color: #ffffff;
    color: #E7402E;
    border: 1px solid #E7402E;
}
.back-step:hover,.back-step:focus{
    background-color: #E7402E;
    color: #ffffff;
    border-color: #E7402E;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
    grid-column: 1 / span 2 !important;
}

.other-input-wrapper {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    grid-column: 1 / span 2 !important;
    width: 100%;
}

.other-input-wrapper label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.other-input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Registration Form */
.registration-grid {
    display: grid;
    gap: 20px;
    max-width: 675px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

.field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.field label {
    font-weight: 600;
    color: #000;
    font-size: 16px;
    margin-bottom: 5px;
}

.field input,
.field select {
    width: 100%;
    padding: 19px 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #E7402E;
}
hr {
    display: block;
    margin-block-start: 50px !important;;
    margin-block-end: 20px !important;;
    width: 100%;
    height: 2px !important;
}
#organisation-field {
    position: relative;
}

#organisation-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}

.org-suggestion {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.org-suggestion:hover {
    background: #f5f5f5;
}

.checkbox-section {
    width: 53%;
    margin: 20px auto 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #222;
    line-height: 1.5;
}

/* Show NORMAL default checkbox (no custom box) */
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px;
}

.checkbox-item a {
    color: #222;
    text-decoration: underline;
}

#ajax-loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#step2-form,#step6-form,#step3-form,#step4-form,#step5-form,#step1-form{
    width: 100%;
}

#ajax-loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E7402E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .yr_heading {
        font-size: 30px;
        padding: 30px 0 20px;
    }
    .radio-wrapper,
    .checkbox-wrapper,
    .registration-grid {
        grid-template-columns: 1fr;
    }
    .buttons {
        flex-direction: column;
    }
    .next-step,
    .submit-registration,
    .back-step {
        width: 100%;
    }
    .main-container {
        width: 85%;
        padding: 15px;
    }
}


.clickable{
       padding: 16px 20px;
    cursor: pointer;
    background-color: #E7402E;
    color: white;
    transition: all 0.3s;
    display: block;
    width: 50%;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid;
}