/* Pet Inquiry Modal Improvements */

/* Simplify modal header - reduce wasted space */
#petInquiry .modal-header {
    padding: 0.75rem 1rem;
    min-height: auto;
}

#petInquiry .modal-header .modal-title {
    font-size: 1rem;
    margin: 0;
}

/* Alternatively, hide the header completely and move close button to top right of modal */
#petInquiry .modal-header {
    border: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    background: transparent;
}

#petInquiry .modal-title {
    display: none;
}

#petInquiry .btn-close {
    padding: 1rem;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    opacity: 0.8;
}

#petInquiry .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Reduce modal body padding */
#petInquiry .modal-body {
    padding: 1.5rem 1rem 1rem;
}

@media (min-width: 768px) {
    #petInquiry .modal-body {
        padding: 2rem 2rem 1.5rem;
    }
}

/* Make pet inquiry card more compact */
#petInquiry .card-pet-inquiry {
    margin-bottom: 1.5rem !important;
}

#petInquiry .card-pet-inquiry .card-body {
    padding: 0.75rem 1rem;
}

#petInquiry .card-pet-inquiry .card-title {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

#petInquiry .card-pet-inquiry .card-text {
    font-size: 0.8125rem;
    margin: 0;
}

/* Gravity Form Styling Improvements */
#petInquiry .gform_wrapper {
    margin: 0 !important;
}

#petInquiry .gform_body {
    margin: 0;
}

#petInquiry .gform_fields {
    grid-row-gap: 1rem !important;
    margin: 0 !important;
}

/* Hide field labels since we have placeholders */
#petInquiry .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Show required asterisk inline with placeholder */
#petInquiry .gfield_required {
    display: none;
}

/* Clean input styling */
#petInquiry input[type="text"],
#petInquiry input[type="email"],
#petInquiry input[type="tel"],
#petInquiry textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#petInquiry input[type="text"]:focus,
#petInquiry input[type="email"]:focus,
#petInquiry input[type="tel"]:focus,
#petInquiry textarea:focus {
    border-color: #f26322;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(242, 99, 34, 0.15);
}

/* Name field grid - keep on same row */
#petInquiry .ginput_container--name.gform-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

#petInquiry .name_first,
#petInquiry .name_last {
    width: 100%;
}

/* Textarea sizing */
#petInquiry textarea.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox styling */
#petInquiry .gfield_checkbox {
    margin: 0;
}

#petInquiry .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
}

#petInquiry .gfield-choice-input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

#petInquiry .gchoice label {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Footer styling - make it compact */
#petInquiry .gform_footer {
    margin-top: 1.25rem;
    padding: 0;
}

#petInquiry .gform_footer .small.text-body-secondary {
    display: none;
}

#petInquiry .gform_footer .small {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

#petInquiry .gform_footer .text-center {
    margin-top: 0.5rem;
}

#petInquiry .gform_button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0;
}

/* Hide admin markup */
#petInquiry .admin-hidden-markup {
    display: none !important;
}

/* Mobile improvements */
@media (max-width: 767px) {
    #petInquiry .modal-dialog {
        margin: 0;
    }

    #petInquiry .modal-body {
        padding: 1.5rem 1rem 1rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }

    #petInquiry .card-pet-inquiry .ratio {
        width: 64px !important;
    }

    #petInquiry .card-pet-inquiry .card-body {
        padding: 0.5rem 0.75rem;
    }
}

/* Product card button fixes for mobile */
@media (max-width: 575px) {
    .card .btn-md span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

    .card .d-flex.flex-row.gap-1 {
        min-width: 0;
    }

    .card .btn-primary.flex-grow-1 {
        min-width: 0;
        max-width: calc(100% - 56px);
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Extra small devices - reduce button padding even more */
@media (max-width: 375px) {
    .card .btn-primary.flex-grow-1 {
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
        font-size: 0.75rem !important;
    }
}

/* Field width adjustments - Email and Phone on same row */
#petInquiry .gfield--width-half {
    width: calc(50% - 0.5rem);
    display: inline-block;
    vertical-align: top;
}

#petInquiry .gfield--width-half + .gfield--width-half {
    margin-left: 1rem;
}

@media (max-width: 575px) {
    #petInquiry .gfield--width-half {
        width: 100%;
    }

    #petInquiry .gfield--width-half + .gfield--width-half {
        margin-left: 0;
    }
}

/* Validation error styling */
#petInquiry .gfield_error input,
#petInquiry .gfield_error textarea {
    border-color: #dc3545;
}

#petInquiry .validation_message {
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Remove gaps from hidden fields */
#petInquiry .gfield_visibility_hidden {
    display: none !important;
}

/* Consent field spacing */
#petInquiry #field_70_19 {
    margin-top: 0.5rem;
}

#petInquiry #field_70_19 legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   BLURRED CORNER PRICE OVERLAY & MODAL STYLES
   ================================================ */

/* Product image container - position relative for absolute overlay */
.unlock-price-image-container {
    position: relative;
}

/* Blurred Corner Price Container - Positioned in top-left corner */
.blurred-corner-price {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    cursor: pointer;

    /* Container sizing - professional corner badge - auto height to fit content only */
    width: auto;
    height: auto;
    min-width: 140px;

    /* Rounded corners for modern look */
    border-radius: 8px;

    /* Make it a stacking context for layering */
    display: inline-block;

    /* Smooth transitions */
    transition: all 0.3s ease;

    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;

    /* Professional shadow */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover effect - lift and highlight */
.blurred-corner-price:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Focus state for keyboard accessibility */
.blurred-corner-price:focus {
    outline: 3px solid rgba(242, 99, 34, 0.6);
    outline-offset: 2px;
}

/* Active/pressed state */
.blurred-corner-price:active {
    transform: translateY(0);
}

/* Green price text layer - sits underneath the blur */
.price-text-under-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Center the text */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Normal green price styling - professional color */
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d7a3e;
    /* Professional forest green */

    /* Subtle text shadow for depth */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    /* Layer ordering - underneath blur */
    z-index: 1;

    /* No padding - overlay has padding */
    pointer-events: none;
}

/* Make block character masks smaller to match digit height */
.price-block-small {
    font-size: 0.65em;
    vertical-align: middle;
    line-height: 1;
}

/* Frosted glass blur overlay - sits on top of price text */
.blur-glass-overlay {
    position: relative;
    width: 100%;

    /* User specified blur - 3.6px (one more decimal blurry than 2.6px) */
    backdrop-filter: blur(3.6px) saturate(120%);
    -webkit-backdrop-filter: blur(3.6px) saturate(120%);

    /* Professional frosted white overlay */
    background: rgba(255, 255, 255, 0.4);

    /* Subtle gradient for depth */
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );

    /* Layer ordering - on top of price text */
    z-index: 2;

    /* Clean border */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;

    /* Professional shadow */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);

    /* Flex container for CTA text */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
}

/* Call-to-action text overlay */
.unlock-pricing-cta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row;

    /* Text styling */
    font-size: 0.6875rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.3;

    /* Text shadow for readability */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);

    /* Pointer events */
    pointer-events: none;
}

/* Lock icon styling */
.unlock-pricing-cta svg {
    opacity: 0.8;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

/* Hover effect - keep blur the same, no price reveal - background stays same opacity */
.blurred-corner-price:hover .blur-glass-overlay {
    backdrop-filter: blur(3.6px) saturate(120%);
    -webkit-backdrop-filter: blur(3.6px) saturate(120%);
    background: rgba(255, 255, 255, 0.4);
}

/* Hover effect on CTA text */
.blurred-corner-price:hover .unlock-pricing-cta {
    color: #f26322;
}

.blurred-corner-price:hover .unlock-pricing-cta svg {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 575px) {
    .blurred-corner-price {
        min-width: 120px;
        top: 6px;
        left: 6px;
    }

    .price-text-under-blur {
        font-size: 1.375rem;
    }

    .unlock-pricing-cta {
        font-size: 0.625rem;
    }

    .unlock-pricing-cta svg {
        width: 12px;
        height: 12px;
    }
}

/* Extra small devices - more compact */
@media (max-width: 375px) {
    .blurred-corner-price {
        min-width: 110px;
    }

    .price-text-under-blur {
        font-size: 1.25rem;
    }

    .blur-glass-overlay {
        padding: 7px 9px;
    }

    .unlock-pricing-cta {
        font-size: 0.5625rem;
        gap: 2px;
    }

    .unlock-pricing-cta svg {
        width: 10px;
        height: 10px;
    }
}

/* ================================================
   UNLOCK PRICE MODAL STYLES
   ================================================ */

/* Apply same styling as petInquiry modal for consistency */
#unlockPriceModal .modal-header {
    border: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    background: transparent;
}

#unlockPriceModal .modal-title {
    display: none;
}

#unlockPriceModal .btn-close {
    padding: 1rem;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    opacity: 0.8;
}

#unlockPriceModal .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

#unlockPriceModal .modal-body {
    padding: 1.5rem 1rem 1rem;
}

@media (min-width: 768px) {
    #unlockPriceModal .modal-body {
        padding: 2rem 2rem 1.5rem;
    }
}

/* Pet info card styling */
#unlockPriceModal .card-pet-inquiry {
    margin-bottom: 1.5rem !important;
}

#unlockPriceModal .card-pet-inquiry .card-body {
    padding: 0.75rem 1rem;
}

#unlockPriceModal .card-pet-inquiry .card-title {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

#unlockPriceModal .card-pet-inquiry .card-text {
    font-size: 0.8125rem;
    margin: 0;
}

/* Alert/notice box styling */
#unlockPriceModal .alert-info {
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
}

/* How it works section - label on left, text on right */
#unlockPriceModal .how-it-works-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

#unlockPriceModal .how-it-works-content svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

#unlockPriceModal .how-it-works-label {
    flex-shrink: 0;
    white-space: nowrap;
}

#unlockPriceModal .how-it-works-text {
    flex: 1;
}

/* Gravity Form styling - inherit from petInquiry */
#unlockPriceModal .gform_wrapper {
    margin: 0 !important;
}

#unlockPriceModal .gform_body {
    margin: 0;
}

#unlockPriceModal .gform_fields {
    grid-row-gap: 1rem !important;
    margin: 0 !important;
}

#unlockPriceModal .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#unlockPriceModal .gfield_required {
    display: none;
}

#unlockPriceModal input[type="text"],
#unlockPriceModal input[type="email"],
#unlockPriceModal input[type="tel"],
#unlockPriceModal textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#unlockPriceModal input[type="text"]:focus,
#unlockPriceModal input[type="email"]:focus,
#unlockPriceModal input[type="tel"]:focus,
#unlockPriceModal textarea:focus {
    border-color: #f26322;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(242, 99, 34, 0.15);
}

#unlockPriceModal .ginput_container--name.gform-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

#unlockPriceModal .name_first,
#unlockPriceModal .name_last {
    width: 100%;
}

#unlockPriceModal textarea.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Hide textarea - will be auto-populated with pricing interest message */
#unlockPriceModal textarea {
    display: none !important;
}

#unlockPriceModal .gfield_checkbox {
    margin: 0;
}

#unlockPriceModal .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
}

#unlockPriceModal .gfield-choice-input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

#unlockPriceModal .gchoice label {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

#unlockPriceModal .gform_footer {
    margin-top: 1.25rem;
    padding: 0;
}

#unlockPriceModal .gform_footer .small.text-body-secondary {
    display: none;
}

#unlockPriceModal .gform_footer .small {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

#unlockPriceModal .gform_footer .text-center {
    margin-top: 0.5rem;
}

#unlockPriceModal .gform_button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0;
}

#unlockPriceModal .admin-hidden-markup {
    display: none !important;
}

#unlockPriceModal .gfield_visibility_hidden {
    display: none !important;
}

#unlockPriceModal .gfield--width-half {
    /* width: calc(50% - 0.5rem); */ /* Removed - making fields too small on desktop */
    display: inline-block;
    vertical-align: top;
}

#unlockPriceModal .gfield--width-half + .gfield--width-half {
    margin-left: 1rem;
}

#unlockPriceModal .gfield_error input,
#unlockPriceModal .gfield_error textarea {
    border-color: #dc3545;
}

#unlockPriceModal .validation_message {
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    #unlockPriceModal .modal-dialog {
        margin: 0;
    }

    #unlockPriceModal .modal-body {
        padding: 1.5rem 1rem 1rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }

    #unlockPriceModal .card-pet-inquiry .ratio {
        width: 64px !important;
    }

    #unlockPriceModal .card-pet-inquiry .card-body {
        padding: 0.5rem 0.75rem;
    }

    #unlockPriceModal .alert-info {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }

    /* How it works section - stack on mobile if needed */
    #unlockPriceModal .how-it-works-content {
        flex-direction: row;
        gap: 0.375rem;
    }

    #unlockPriceModal .how-it-works-label {
        font-size: 0.8125rem;
    }

    #unlockPriceModal .how-it-works-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575px) {
    #unlockPriceModal .gfield--width-half {
        width: 100%;
    }

    #unlockPriceModal .gfield--width-half + .gfield--width-half {
        margin-left: 0;
    }
}

/* ================================================
   URGENCY BADGES - POPULAR & NEW ARRIVAL
   ================================================ */

/* Popular pup badge - pink/purple with heart */
.badge-popular {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: none;
    letter-spacing: 0.01em;
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Many interested badge - lighter pink */
.badge-interested {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: none;
    letter-spacing: 0.01em;
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Just arrived badge - blue/teal */
.badge-new-arrival {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* New this week badge - green/teal */
.badge-new-week {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* Subtle pulse animation for popular badges */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 8px rgba(236, 72, 153, 0.4);
    }
}

/* Mobile responsiveness for urgency badges */
@media (max-width: 575px) {
    .badge-popular,
    .badge-interested,
    .badge-new-arrival,
    .badge-new-week {
        font-size: 10px !important;
        padding: 0.3rem 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .badge-popular,
    .badge-interested,
    .badge-new-arrival,
    .badge-new-week {
        font-size: 9px !important;
        padding: 0.25rem 0.4rem;
    }
}

