/* SZUTEST CRM – frontend styles */

.phone-group {
    display: grid !important;
    grid-template-columns: 140px minmax(0, 1fr) !important;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.phone-group > span {
    display: block;
    min-width: 0;
}

.phone-group > p {
    display: contents;
    margin: 0;
}

.phone-group .wpcf7-form-control {
    width: 100%;
}

.szutest-crm-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: transparent;
    border: 1px dashed #ff3f55;
    color: #ff3f55;
    padding: 12px 18px;
    margin-bottom: 36px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.szutest-crm-notice__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
}

@media (max-width: 480px) {
    .phone-group {
        grid-template-columns: 105px minmax(0, 1fr) !important;
        gap: 8px;
    }

    .szutest-crm-notice {
        align-items: flex-start;
        padding: 11px 12px;
        margin-bottom: 24px;
    }

    .szutest-crm-notice__icon {
        margin-top: 2px;
    }
}

/* Form hierarchy and input feedback */
.szutest-grid .szutest-field-label,
.szutest-grid .szutest-phone-label {
    display: block;
    margin: 0 0 6px;
    color: #234e73;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.szutest-grid .szutest-required {
    color: #d8354a;
}

.szutest-grid .szutest-form-section-title {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: #234e73;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.szutest-grid input:not([type="checkbox"]),
.szutest-grid select,
.szutest-grid textarea {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.szutest-grid input:not([type="checkbox"]):focus,
.szutest-grid select:focus,
.szutest-grid textarea:focus {
    border-color: #1e5c8a;
    box-shadow: 0 0 0 3px rgba(30, 92, 138, 0.14);
    outline: none;
}

.szutest-grid .wpcf7-not-valid {
    border-color: #d8354a !important;
}

.szutest-grid .checkbox-wrapper {
    margin-top: 4px;
}

.szutest-grid .checkbox-wrapper .wpcf7-list-item {
    display: block;
    margin: 0 0 11px;
}

.szutest-grid .checkbox-wrapper .wpcf7-list-item-label {
    color: #485869;
    font-size: 13px;
    line-height: 1.45;
}

.szutest-grid .wpcf7-submit {
    min-width: 154px;
    min-height: 48px;
    padding: 0 24px;
    background: #1e4a73;
    border: 1px solid #1e4a73;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0;
}

.szutest-grid .wpcf7-submit:hover,
.szutest-grid .wpcf7-submit:focus {
    background: #163d60;
    border-color: #163d60;
}

.szutest-grid .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .szutest-grid .wpcf7-submit {
        width: 100%;
    }
}
