/* =========================================
   SG Technician Registration
   ========================================= */

.sg-technician-register {
    max-width: 1000px;
    margin: 30px auto 50px;
    padding: 0 20px;
}

.sg-technician-register h1 {
    margin: 0 0 25px;
    font-size: 30px;
    font-weight: 600;
}

.sg-technician-register .fieldset {
    margin: 0 0 25px;
    padding: 25px 30px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
}

.sg-technician-register .fieldset > .legend {
    width: 100%;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}


/* -----------------------------------------
   Fields
   ----------------------------------------- */

.sg-technician-register .field {
    margin-bottom: 18px;
}

.sg-technician-register .field:last-child {
    margin-bottom: 0;
}

.sg-technician-register .label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sg-technician-register .control {
    width: 100%;
}

.sg-technician-register input[type="text"],
.sg-technician-register input[type="email"],
.sg-technician-register input[type="tel"],
.sg-technician-register input[type="password"],
.sg-technician-register input[type="date"],
.sg-technician-register select,
.sg-technician-register textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sg-technician-register textarea {
    min-height: 100px;
    resize: vertical;
}

.sg-technician-register input:focus,
.sg-technician-register select:focus,
.sg-technician-register textarea:focus {
    border-color: #00c853;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, .10);
}


/* -----------------------------------------
   Required *
   ----------------------------------------- */

.sg-technician-register .required-entry + .mage-error {
    margin-top: 5px;
}


/* -----------------------------------------
   File uploads
   ----------------------------------------- */

.sg-technician-register input[type="file"] {
    width: 100%;
    padding: 9px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fafafa;
    box-sizing: border-box;
}


/* -----------------------------------------
   Checkbox group
   ----------------------------------------- */

.sg-technician-register .sg-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
    padding-top: 5px;
}

.sg-technician-register .sg-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

.sg-technician-register .sg-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}


/* -----------------------------------------
   Actions
   ----------------------------------------- */

.sg-technician-register .actions-toolbar {
    margin-top: 10px;
}

.sg-technician-register button.action.primary {
    min-height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 4px;
    background: #00c853;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.sg-technician-register button.action.primary:hover {
    background: #00b848;
}

.sg-technician-register button.action.primary:active {
    transform: translateY(1px);
}


/* -----------------------------------------
   Validation
   ----------------------------------------- */

.sg-technician-register .mage-error {
    color: #e02b27;
    font-size: 12px;
    margin-top: 5px;
}


/* -----------------------------------------
   Two-column fields
   ----------------------------------------- */

.sg-technician-register .sg-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}



.sg-professional-body-box {
    border: 1px solid #c2c2c2;
    border-radius: 3px;
    background: #fff;
    padding: 10px 12px;
    max-height: 180px;
    overflow-y: auto;
}

.sg-professional-body-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 9px;
    cursor: pointer;
    line-height: 1.4;
    font-weight: normal;
}

.sg-professional-body-option:last-child {
    margin-bottom: 0;
}

.sg-professional-body-option input[type="checkbox"] {
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.sg-professional-body-option span {
    flex: 1;
}





.sg-register-section {
    margin-top: 30px;
}

.sg-register-section-title {
    margin-bottom: 20px;
    font-size: 22px;
}

.sg-checkbox-group {
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
}

.sg-checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 6px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}

.sg-checkbox-option input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.sg-checkbox-option span {
    flex: 1;
}

.sg-checkbox-option small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.sg-risk-class-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.sg-risk-class-group .sg-checkbox-option {
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    padding: 10px;
}

@media (max-width: 767px) {

    .sg-risk-class-group {
        grid-template-columns: repeat(2, 1fr);
    }

}






/* -----------------------------------------
   Mobile
   ----------------------------------------- */

@media (max-width: 767px) {

    .sg-technician-register {
        margin: 20px auto 35px;
        padding: 0 12px;
    }

    .sg-technician-register h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .sg-technician-register .fieldset {
        padding: 18px 15px;
        margin-bottom: 18px;
    }

    .sg-technician-register .fieldset > .legend {
        font-size: 18px;
    }

    .sg-technician-register .sg-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sg-technician-register .sg-checkbox-group {
        grid-template-columns: 1fr;
    }

    .sg-technician-register button.action.primary {
        width: 100%;
    }
}




/* =========================================
   SG Technician Login
   ========================================= */

.sg-technician-login {
    max-width: 650px;
    margin: 45px auto 60px;
    padding: 35px 40px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    box-sizing: border-box;
}

.sg-technician-login-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 18px;
}

.sg-technician-login-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    color: #222;
}

.sg-technician-login-header p {
    margin: 0;
    font-size: 14px;
    color: #777;
}


/* Fields */

.sg-technician-login .field {
    margin-bottom: 22px;
}

.sg-technician-login .field .label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sg-technician-login .field .control {
    width: 100%;
}

.sg-technician-login .input-text {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.sg-technician-login .input-text:focus {
    border-color: #00c853;
    outline: none;
    box-shadow: 0 0 0 1px #00c853;
}


/* Login button */

.sg-technician-login .actions-toolbar {
    margin-top: 30px;
}

.sg-technician-login .actions-toolbar .primary {
    width: 100%;
}

.sg-technician-login .actions-toolbar button {
    width: 100%;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 3px;
    background: #00c853;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sg-technician-login .actions-toolbar button:hover {
    background: #00b84a;
}


/* Register link */

.sg-technician-register-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.sg-technician-register-link a {
    color: #00a944;
    font-size: 14px;
    text-decoration: none;
}

.sg-technician-register-link a:hover {
    text-decoration: underline;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767px) {

    .sg-technician-login {
        margin: 25px 15px 40px;
        padding: 25px 20px;
    }

    .sg-technician-login-header h1 {
        font-size: 22px;
    }

}



