.hubpet-pet-form {
    max-width: 860px;
    margin: 0 auto;
}

.hubpet-pet-form-title {
    margin: 0 0 12px;
    text-align: center;
    color: #2f2f2f;
    font-size: 48px;
    font-weight: 700;
}

.hubpet-pet-photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    cursor: pointer;
}

.hubpet-pet-photo-shell {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0efec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hubpet-pet-photo-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    color: #d9d7d3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-photo-placeholder > *,
.hubpet-pet-photo-placeholder .elementor-icon,
.hubpet-pet-photo-placeholder .elementor-icon i,
.hubpet-pet-photo-placeholder .elementor-icon svg,
.hubpet-pet-photo-placeholder i,
.hubpet-pet-photo-placeholder svg {
    position: static !important;
    transform: none !important;
}

.hubpet-pet-photo-placeholder > *,
.hubpet-pet-photo-placeholder .elementor-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-photo-placeholder i {
    font-size: 28px;
    line-height: 1;
}

.hubpet-pet-photo-placeholder svg {
    width: 28px;
    height: 28px;
    display: block;
    margin: 0 auto;
}

.hubpet-pet-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hubpet-pet-photo-input {
    display: none;
}

.hubpet-pet-photo-text {
    color: #ea831d;
    font-size: 14px;
    text-transform: uppercase;
}

.hubpet-pet-field-label {
    color: #2f5958;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

.hubpet-pet-form-input,
.hubpet-pet-form textarea,
.hubpet-pet-form select {
    width: 100%;
    min-height: 56px;
    border: 0px solid #e7ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 57, 56, 0.08);
    padding: 0 14px;
    color: #2f5958;
    font-size: 16px;
}

.hubpet-pet-select-wrap {
    position: relative;
    display: block;
}

.hubpet-pet-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
}

.hubpet-pet-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #2f5958;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-select-icon i {
    font-size: 14px;
}

.hubpet-pet-select-icon svg {
    width: 14px;
    height: 14px;
}

.hubpet-pet-form textarea {
    padding-top: 12px;
    min-height: 140px;
    resize: vertical;
}

.hubpet-pet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.hubpet-pet-field,
.hubpet-pet-gallery {
    margin-bottom: 14px;
}

.hubpet-pet-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid #e7ecef;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 57, 56, 0.08);
    color: #ea831d;
    cursor: pointer;
    overflow: hidden;
}

.hubpet-pet-gallery-btn-text {
    display: none;
}

.hubpet-pet-gallery-btn i {
    font-size: 20px;
}

.hubpet-pet-gallery-btn svg {
    width: 20px;
    height: 20px;
}

.hubpet-pet-gallery-input {
    display: none;
}

.hubpet-pet-gallery-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hubpet-pet-gallery-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e7ecef;
}

.hubpet-pet-gallery-thumb-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 0 0 transparent;
    position: relative;
}

.hubpet-pet-edit-form .hubpet-pet-gallery-thumb-btn {
    position: relative;
}

.hubpet-pet-gallery-thumb-btn.is-featured {
    box-shadow: 0 0 0 2px #ea831d;
}

.hubpet-pet-gallery-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #ea831d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(32, 57, 56, 0.2);
    z-index: 2;
}

.hubpet-pet-gallery-thumb-remove i {
    font-size: 11px;
}

.hubpet-pet-gallery-thumb-remove svg {
    width: 11px;
    height: 11px;
}

.hubpet-pet-form:not(.hubpet-pet-edit-form) .hubpet-pet-gallery-thumb-remove {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
}

.hubpet-pet-submit {
    width: 200px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    display: block;
    margin: 20px auto 0;
    background: #f2d7be;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.hubpet-pet-edit-form .hubpet-pet-form-title {
    font-size: 42px;
    margin-bottom: 8px;
}

.hubpet-pet-edit-form .hubpet-pet-photo-label {
    margin-bottom: 20px;
}

.hubpet-pet-edit-form .hubpet-pet-photo-shell {
    width: 110px;
    height: 110px;
}

.hubpet-pet-edit-form .hubpet-pet-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #ea831d;
    box-shadow: 0 4px 12px rgba(32, 57, 56, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.hubpet-pet-edit-form .hubpet-pet-photo-remove i {
    font-size: 12px;
}

.hubpet-pet-edit-form .hubpet-pet-photo-remove svg {
    width: 12px;
    height: 12px;
}

.hubpet-pet-chat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e7ecef;
    border-bottom: 1px solid #e7ecef;
    padding: 10px 4px;
    margin: 8px 0 14px;
}

a.hubpet-pet-chat-row {
    text-decoration: none;
    color: inherit;
}

.hubpet-pet-chat-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hubpet-pet-chat-icon {
    color: #2f5958;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-chat-icon i {
    font-size: 16px;
}

.hubpet-pet-chat-icon svg {
    width: 16px;
    height: 16px;
}

.hubpet-pet-chat-label {
    color: #2f5958;
    font-size: 26px;
    font-weight: 600;
}

.hubpet-pet-chat-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ea831d;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    padding: 0 6px;
}

.hubpet-pet-delete-form {
    margin-top: 10px;
    text-align: center;
}

.hubpet-pet-delete-btn {
    background: transparent;
    border: 0;
    color: #ea831d;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hubpet-pet-form-alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.hubpet-pet-form-alert--success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #135200;
}

.hubpet-pet-form-alert--error {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.hubpet-pet-form-login-link {
    display: inline-flex;
    margin-left: 8px;
    color: #a8071a;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .hubpet-pet-form-title {
        font-size: 34px;
    }

    .hubpet-pet-grid {
        grid-template-columns: 1fr;
    }

    .hubpet-pet-chat-label {
        font-size: 24px;
    }

    .hubpet-pet-gallery-preview {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 10px;
        padding-bottom: 6px;
    }

    .hubpet-pet-gallery-preview::-webkit-scrollbar {
        display: none;
    }

    .hubpet-pet-gallery-thumb-btn,
    .hubpet-pet-gallery-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
