/* --- Skrytí původních (již nepotřebných) prvků --- */
body.type-registration .phone-form-group .js-phone-prefix-select {
    display: none;
}

/* --- Základní rozložení a hlavní nadpis --- */
body.type-registration .content-inner {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 15px;
}

body.type-registration h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #e50000;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Vzhled formuláře a jeho částí --- */
body.type-registration #register-form {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.type-registration #register-form fieldset,
body.type-registration #register-form .co-box {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.type-registration #register-form h4 {
    color: #333;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

body.type-registration #register-form h4::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e50000;
}

/* --- Styly pro formulářové prvky (inputy, labely) --- */
body.type-registration .form-group {
    margin-bottom: 15px;
}

body.type-registration .form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

body.type-registration .form-group .required-asterisk::after {
    content: ' *';
    color: #e50000;
}

body.type-registration .form-control {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1em;
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

body.type-registration .form-control:focus {
    border-color: #e50000;
    box-shadow: 0 0 5px rgba(229, 0, 0, 0.2);
    outline: none;
}

/* --- Vlastní pole pro telefonní číslo --- */
body.type-registration .phone-combined-input {
    display: flex;
}

body.type-registration .phone-combined-input input#phone {
    flex: 1 1 auto;
    width: auto;
    border-radius: 0 8px 8px 0;
}

body.type-registration .custom-phone-select {
    position: relative;
    flex: 0 0 auto;
    width: 150px;
}

body.type-registration .custom-select-trigger {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 42px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

body.type-registration .custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

body.type-registration .custom-select-trigger .shp-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

body.type-registration .custom-select-trigger .shp-flag-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #333;
}

body.type-registration .custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.type-registration .custom-option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color .2s ease;
}

body.type-registration .custom-option:hover {
    background-color: #f0f0f0;
}

body.type-registration .custom-option.selected {
    background-color: #e50000;
    color: white;
}

body.type-registration .custom-option .shp-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

body.type-registration .phone-form-group.has-error .custom-select-trigger,
body.type-registration .phone-form-group.has-error .form-control {
    border-color: #e50000;
}

/* --- Nápověda (tooltip) --- */
body.type-registration .question-tooltip {
    background-color: #e50000 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border: none !important;
}

body.type-registration .sf-tooltip-wrapper {
    position: relative;
}

body.type-registration .sf-tooltip-wrapper .question-tooltip {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all .2s ease;
}

body.type-registration .sf-tooltip-wrapper .question-tooltip:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

body.type-registration .shoptet-tooltip .tooltip-inner {
    background-color: #2c2c2c;
    border: none !important;
}

body.type-registration .shoptet-tooltip.top .tooltip-arrow {
    border-top-color: #2c2c2c !important;
}

body.type-registration .form-group-hasTooltip .form-control {
    padding-right: 45px;
}

/* --- Vlastní Radio a Checkbox tlačítka --- */
body.type-registration .co-registration .form-group input[type="radio"],
body.type-registration .form-group input[type="checkbox"] {
    display: none;
}

body.type-registration .co-registration .form-group input[type="radio"]+label,
body.type-registration .form-group input[type="checkbox"]+label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1.4;
}

body.type-registration .co-registration .form-group input[type="radio"]+label {
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
}

body.type-registration .co-registration .form-group input[type="radio"]+label:hover {
    border-color: #e50000;
    background-color: #fff8f8;
}

body.type-registration .co-registration .form-group input[type="radio"]:checked+label {
    border-color: #e50000;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(229, 0, 0, 0.15);
}

body.type-registration .co-registration .form-group input[type="radio"]+label::before,
body.type-registration .form-group input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    box-sizing: border-box;
    transition: all .2s ease;
}

body.type-registration .form-group input[type="checkbox"]+label::before {
    left: 0;
}

body.type-registration .co-registration .form-group input[type="radio"]:checked+label::before,
body.type-registration .form-group input[type="checkbox"]:checked+label::before {
    border-color: #e50000;
}

body.type-registration .co-registration .form-group input[type="radio"]:checked+label::after,
body.type-registration .form-group input[type="checkbox"]:checked+label::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e50000;
    transform: translateY(-50%) scale(1);
    transition: transform .2s ease;
}

body.type-registration .form-group input[type="checkbox"]:checked+label::after {
    left: 5px;
}

/* --- Odesílací tlačítko --- */
body.type-registration .submit-wrapper .btn-secondary {
    background-color: #e50000 !important;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all .2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    text-transform: uppercase;
    width: 100%;
    max-width: 300px;
}

body.type-registration .submit-wrapper .btn-secondary:hover {
    background-color: #c00000 !important;
    transform: scale(1.02);
}

body.type-registration .submit-wrapper p {
    text-align: center;
}

/* --- Responzivita pro mobilní zařízení --- */
@media (max-width: 767px) {
    body.type-registration .content-inner {
        margin-top: 1rem;
    }

    body.type-registration h1 {
        font-size: 1.8em;
    }

    body.type-registration #register-form {
        padding: 15px;
    }

    body.type-registration #register-form fieldset,
    body.type-registration #register-form .co-box {
        padding: 15px;
    }
}