
.pc-field,
.pc-text {
    margin-bottom: 25px;
}

.pc-field .pc-info {
    margin-top: 10px;
    color: #ababab;
    font-family: Roboto, Calibri, MalgunGothic, sans-serif;
    font-size: .7333333333rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: normal;
    padding-left: 10px;
    text-transform: uppercase;
}

.pc-group > legend {
    line-height: 1.6rem;
    margin-bottom: 10px;
    font-size: 1.3333333333rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -.025em;
    border: none;
    color: #0051a0;
    font-family: Roboto, Calibri, MalgunGothic, sans-serif;
}

.pc-field .mandatory {
    font-family: Roboto, Calibri, MalgunGothic, sans-serif;
    font-size: 1.1333333333rem;
    font-style: normal;
    font-weight: 700;
    line-height: 0 !important;
    margin-left: 3px;
    color: #0051a0;
}

.pc-field select,
.pc-field textarea,
.pc-field input[type="text"],
.pc-field input[type="number"] {
    display: block;
    border-radius: 24px;
    height: 48px;
    padding-left: 10px;
    padding-right: 5px;
    transition-behavior: normal;
    transition-delay: 0s;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: ease-in-out;
}

.pc-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%230051a0" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;

    padding-right: 40px;
}

.pc-field select::-ms-expand {
    display: none;
}

.pc-field select:focus,
.pc-field textarea:focus,
.pc-field input[type="text"]:focus,
.pc-field input[type="number"]:focus {
    border: 1px solid #0051a0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

.pc-controls {
    margin-top: 20px;
}

.pc-field input::placeholder,
.pc-field textarea::placeholder {
    opacity: 0.6;
}
.pc-field select:has(option:checked[disabled]) {
    color: rgba(0, 0, 0, 0.6);
}
.pc-field select option[disabled] {
    color: rgba(0, 0, 0, 0.6);
}
.pc-field .label {
    display: block;
    margin-bottom: 10px;
    padding: 0 0 0 10px;
    text-align: left;
}

.pc-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0051a0;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    margin-left: 8px;
    vertical-align: middle;
    cursor: help;
    text-transform: none;
}

.pc-tooltip:hover {
    filter: brightness(1.05);
}

.pc-field .label .pc-tooltip {
    position: relative;
    top: -10px;
    font-size: 13px;
}

.pc-field.invalid input,
.pc-field.invalid select,
.pc-field.invalid textarea {
    border-color: #f22746;
    border-style: dashed;
}

.pc-error {
    margin-top: 10px;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
    color: #f22746;
    font-size: 11px;
    line-height: normal;
}

.pc-tooltip-bubble {
    position: absolute;
    max-width: 280px;
    background: #0051a0;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    font-family: Roboto, Calibri, MalgunGothic, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    z-index: 9999;
    pointer-events: none;
}
.pc-tooltip-bubble::after {
    content: "";
    position: absolute;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0051a0;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .pc-field select,
    .pc-field textarea,
    .pc-field input[type="text"],
    .pc-field input[type="number"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        height: 44px;
    }

    .pc-field textarea {
        height: auto;
        min-height: 100px;
    }

    .pc-field,
    .pc-text {
        margin-bottom: 18px;
    }

    .pc-group > legend {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.4rem;
        padding: 0 8px;
    }
    .pc-field .label {
        padding-left: 8px;
        margin-bottom: 8px;
    }

    .pc-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    .pc-controls > * {
        width: 100%;
        height: 44px;
        box-sizing: border-box;
    }

    .pc-tooltip {
        width: 16px;
        height: 16px;
        font-size: 11px;
        margin-left: 6px;
    }
    .pc-field .label .pc-tooltip,
    .pc-field .label .pc-tooltip {
        top: -2px;
    }

    .pc-group {
        display: grid;
        grid-auto-flow: column;
    }
}
