/**
 * OwnHost ClientX — global form system (loads last; overrides legacy style.css)
 */

/* Shared form field contexts */
body.oh-client-area .pers-info .inputBox,
body.oh-client-area .formBox .inputBox,
body.oh-client-area .server-box .inputBox,
body.oh-client-area .panel-body .inputBox,
body.oh-client-area .client-cf .inputBox,
body.oh-client-area #order-standard_cart .inputBox,
body.oh-client-area .oh-support-form .inputBox,
body.oh-client-area .change-pass .inputBox,
body.oh-client-area .host-row .inputBox,
body.oh-client-area #customFieldsContainer .inputBox {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

body.oh-client-area .inputBox .inputText,
body.oh-client-area .inputBox.focus .inputText,
body.oh-client-area .inputText.phonenumber,
body.oh-client-area .focus .inputText.phonenumber {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 0 8px !important;
    margin-left: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--oh-text-strong) !important;
    pointer-events: none;
    white-space: normal;
}

body.oh-client-area .inputBox .input,
body.oh-client-area .inputBox input:not([type="checkbox"]):not([type="radio"]),
body.oh-client-area .inputBox select,
body.oh-client-area .inputBox textarea.input,
body.oh-client-area .inputBox textarea.form-control,
body.oh-client-area .pers-info .input,
body.oh-client-area .pers-info input:not([type="checkbox"]):not([type="radio"]),
body.oh-client-area .pers-info select,
body.oh-client-area .pers-info textarea,
body.oh-client-area .form-horizontal .form-control,
body.oh-client-area .oh-support-form .form-control,
body.oh-client-area #order-standard_cart .form-control,
body.oh-client-area #order-standard_cart .field-input {
    border: 1px solid var(--oh-field-border) !important;
    border-radius: var(--oh-radius-sm) !important;
    padding: 10px 14px !important;
    background: #fff !important;
    min-height: 44px !important;
    height: 44px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--oh-text-strong) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.oh-client-area .inputBox textarea.input,
body.oh-client-area .inputBox textarea.form-control,
body.oh-client-area .pers-info textarea {
    height: auto !important;
    min-height: 96px !important;
    line-height: 1.5 !important;
}

body.oh-client-area .inputBox .input:focus,
body.oh-client-area .inputBox input:focus,
body.oh-client-area .inputBox select:focus,
body.oh-client-area .inputBox textarea:focus,
body.oh-client-area .pers-info .input:focus,
body.oh-client-area .form-control:focus {
    border-color: #94a3b8 !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18) !important;
    outline: none !important;
}

body.oh-client-area .inputBox .input[disabled],
body.oh-client-area .inputBox .input.disabled,
body.oh-client-area .form-control[disabled] {
    background: #e8edf2 !important;
    border-color: #d5dee8 !important;
    color: var(--oh-text) !important;
    opacity: 1;
}

/* Form row grid */
body.oh-client-area .formBox .form-colam,
body.oh-client-area .pers-info .form-colam,
body.oh-client-area .oh-support-form .form-colam {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px 16px;
    margin-bottom: 20px;
    align-items: start;
    width: 100%;
    float: none !important;
}

body.oh-client-area .formBox .form-colam:last-child,
body.oh-client-area .pers-info .form-colam:last-child {
    margin-bottom: 0;
}

body.oh-client-area .form-colam > [class*="col-"] {
    float: none !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    position: relative;
}

body.oh-client-area .form-colam .oh-account-phone-col,
body.oh-client-area .form-colam > [class*="col-"]:has(#inputPhone) {
    grid-column: 1 / -1;
    max-width: 420px;
    z-index: 6;
}

/* Phone / intl-tel-input */
body.oh-client-area #inputPhone,
body.oh-client-area .intl-tel-input input[type="tel"],
body.oh-client-area .intl-tel-input .form-control,
body.oh-client-area .wgs-pay-form input#inputPhone {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
}

body.oh-client-area .oh-account-phone-field,
body.oh-client-area .inputBox:has(#inputPhone) {
    z-index: 6;
    overflow: visible !important;
}

body.oh-client-area .intl-tel-input {
    display: block !important;
    width: 100% !important;
    position: relative;
    overflow: visible !important;
}

body.oh-client-area .intl-tel-input .flag-container {
    z-index: 3;
}

body.oh-client-area .intl-tel-input .country-list {
    z-index: 100;
    border-radius: var(--oh-radius-sm);
    box-shadow: var(--oh-shadow-hover);
}

body.oh-client-area .intl-tel-input.separate-dial-code .selected-dial-code {
    padding-left: 6px;
    padding-right: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oh-text-strong);
}

body.oh-client-area .intl-tel-input.separate-dial-code .selected-flag {
    background: var(--oh-field-bg) !important;
    border-right: 1px solid var(--oh-field-border);
    border-radius: var(--oh-radius-sm) 0 0 var(--oh-radius-sm);
}

body.oh-client-area .intl-tel-input.separate-dial-code input,
body.oh-client-area .intl-tel-input.separate-dial-code.allow-dropdown input {
    padding-left: 92px !important;
}

body.oh-client-area .intl-tel-input.allow-dropdown:not(.separate-dial-code) input {
    padding-left: 52px !important;
}

/* Form cards / sections */
body.oh-client-area .formBox:not(.out-put) {
    background: var(--oh-surface);
    border: 1px solid var(--oh-border);
    border-radius: var(--oh-radius);
    box-shadow: var(--oh-shadow);
    overflow: hidden;
    margin-bottom: 16px;
    padding: 0;
}

body.oh-client-area .formBox .Pers-titel,
body.oh-client-area .formBox h2.Pers-titel {
    margin: 0 !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid var(--oh-border);
    background: linear-gradient(180deg, #fafbfc 0%, var(--oh-surface) 100%);
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--oh-text-strong) !important;
}

body.oh-client-area .formBox .form-colam,
body.oh-client-area .formBox .chek-box-grup,
body.oh-client-area .formBox .checkbox,
body.oh-client-area .formBox > h5 {
    padding-left: 24px;
    padding-right: 24px;
}

body.oh-client-area .formBox .form-colam:first-of-type {
    padding-top: 24px;
}

body.oh-client-area .formBox .form-colam:last-of-type,
body.oh-client-area .formBox .chek-box-grup:last-of-type,
body.oh-client-area .formBox .checkbox:last-of-type {
    padding-bottom: 24px;
}

body.oh-client-area .formBox .Pers-titel-dns-domain {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--oh-text-strong);
}

/* Password change rows */
body.oh-client-area .change-pass {
    margin-bottom: 16px;
    max-width: 520px;
}

body.oh-client-area .change-pass .col-md-4,
body.oh-client-area .change-pass .col-md-5,
body.oh-client-area .change-pass .col-md-6,
body.oh-client-area .change-pass .col-md-8 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

body.oh-client-area .change-pass .row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

body.oh-client-area .change-pass .n-padding {
    padding: 0;
    flex: 1 1 200px;
}

/* Select fields (support tickets etc.) */
body.oh-client-area .oh-select-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--oh-field-border);
    border-radius: var(--oh-radius-sm);
    overflow: hidden;
    background: #fff;
}

body.oh-client-area .oh-select-field .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--oh-field-bg);
    border: none;
    border-right: 1px solid var(--oh-field-border);
    color: var(--oh-text);
}

body.oh-client-area .oh-select-field .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 44px !important;
}

/* Form actions */
body.oh-client-area .btn-footer,
body.oh-client-area .formBox .btn-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--oh-border);
    background: var(--oh-surface);
}

body.oh-client-area .btn-footer .btn,
body.oh-client-area .formBox .btn-primary,
body.oh-client-area .formBox .btn-success {
    min-height: 42px;
    padding: 10px 22px !important;
    border-radius: var(--oh-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Checkbox / radio in forms */
body.oh-client-area #customFieldsContainer .inputBox input[type="checkbox"],
body.oh-client-area #customFieldsContainer .inputBox input[type="radio"] {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-right: 8px;
}

body.oh-client-area #customFieldsContainer .inputBox {
    padding-bottom: 8px !important;
    height: auto !important;
}

/* Override legacy floating-label bottom-border style */
body.oh-client-area .pers-info .inputBox .input,
body.oh-client-area .pers-info:not(.oh-account-form-page) .inputBox .input {
    border: 1px solid var(--oh-field-border) !important;
    border-radius: var(--oh-radius-sm) !important;
    padding: 10px 14px !important;
    height: 44px !important;
}

/* Responsive */
@media (max-width: 991px) {
    body.oh-client-area .formBox .form-colam,
    body.oh-client-area .pers-info .form-colam,
    body.oh-client-area .oh-account-form-page .form-colam {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    body.oh-client-area .form-colam .oh-account-phone-col,
    body.oh-client-area .form-colam > [class*="col-"]:has(#inputPhone) {
        max-width: 100%;
    }

    body.oh-client-area .formBox .Pers-titel,
    body.oh-client-area .formBox .form-colam,
    body.oh-client-area .formBox .chek-box-grup,
    body.oh-client-area .formBox .checkbox {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.oh-client-area .formBox .form-colam:first-of-type {
        padding-top: 16px;
    }

    body.oh-client-area .btn-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    body.oh-client-area .btn-footer .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.oh-client-area .inputBox,
    body.oh-client-area .client-cf .inputBox,
    body.oh-client-area .server-box .inputBox {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
    }

    body.oh-client-area .inputBox .input,
    body.oh-client-area .form-control {
        font-size: 16px !important;
        min-height: 48px !important;
        height: 48px !important;
    }

    body.oh-client-area #inputPhone,
    body.oh-client-area .intl-tel-input input[type="tel"] {
        min-height: 48px !important;
        height: 48px !important;
    }

    body.oh-client-area .pers-info {
        padding: 16px !important;
    }
}

/* --- Şifre değiştirme formu --- */

body.oh-client-area .oh-password-form {
    max-width: 520px;
}

body.oh-client-area .oh-password-form__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.oh-client-area .oh-password-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

body.oh-client-area .oh-password-form__new-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

body.oh-client-area .oh-password-form__input-wrap {
    flex: 1 1 220px;
    min-width: 0;
}

body.oh-client-area .oh-password-form__generate {
    flex: 0 0 auto;
    min-height: 44px !important;
    height: 44px !important;
    padding: 10px 16px !important;
    white-space: nowrap;
    margin: 0 !important;
}

body.oh-client-area .oh-password-form__strength {
    width: 100%;
    max-width: 100%;
}

body.oh-client-area .oh-password-form__strength .progress {
    margin: 0 0 12px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--oh-field-bg);
}

body.oh-client-area .oh-password-form__strength .progress-bar {
    border-radius: 999px;
}

body.oh-client-area .oh-password-form__strength .alert {
    margin: 0;
    border-radius: var(--oh-radius-sm);
    font-size: 13px;
}

body.oh-client-area .oh-password-form__actions {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--oh-border);
}

body.oh-client-area .cst-pass .change-pass,
body.oh-client-area .oh-password-form .change-pass {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

body.oh-client-area .cst-pass .change-pass .focus .inputText,
body.oh-client-area .change-pass .focus .inputText,
body.oh-client-area .oh-password-form .change-pass .focus .inputText {
    transform: none !important;
    top: auto !important;
}

body.oh-client-area .oh-password-form .form-control-feedback.glyphicon {
    display: none !important;
}

body.oh-client-area .oh-password-form #inputNewPassword2Msg .help-block {
    margin: 8px 0 0;
    font-size: 13px;
    color: #dc2626;
}

body.oh-client-area .oh-password-form .has-error .input,
body.oh-client-area .oh-password-form .has-warning .input,
body.oh-client-area .oh-password-form .has-success .input {
    border-color: var(--oh-field-border) !important;
}

body.oh-client-area .oh-password-form .has-error .input {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15) !important;
}

body.oh-client-area .oh-password-form .has-success .input {
    border-color: var(--oh-accent) !important;
    box-shadow: 0 0 0 2px rgba(32, 188, 126, 0.12) !important;
}

body.oh-client-area #modalGeneratePassword .modal-body.cst-genrate-pass .form-group {
    margin-bottom: 16px;
}

body.oh-client-area #modalGeneratePassword .p-inp {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    border: 1px solid var(--oh-field-border) !important;
    border-radius: var(--oh-radius-sm) !important;
}

body.oh-client-area #modalGeneratePassword .modal-footer,
body.oh-client-area #modalGeneratePassword .modal-header {
    border-color: var(--oh-border);
}

@media (max-width: 767px) {
    body.oh-client-area .oh-password-form {
        max-width: 100%;
    }

    body.oh-client-area .oh-password-form__new-row {
        flex-direction: column;
        align-items: stretch;
    }

    body.oh-client-area .oh-password-form__generate {
        width: 100%;
    }
}
