/* ============================================================
   CREATE PET PROFILE STYLES
   ============================================================ */

.m-pet-profile-page {
    background-color: #F4F6FB;
    min-height: 100vh;
}

/* TOP BAR */
.m-top-bar {
    padding: 52px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m-progress-text {
    font-size: 13px;
    color: #6B7280;
}
.m-progress-bar {
    display: flex;
    gap: 6px;
}
.m-progress-bar .segment {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #E5E7EB;
}
.m-progress-bar .segment.active {
    background: var(--m-pink-accent);
}

/* TITLE */
.m-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 20px 20px 0;
}

/* SCROLL CONTENT */
.m-scroll-content {
    padding: 0 20px 100px;
}

.m-section-label {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #111827;
}

/* SECTION 1: Grid */
.m-pet-grid {
    display: flex;
    gap: 10px;
}
.m-pet-card {
    flex: 1;
    aspect-ratio: 1;
    background: white;
    border-radius: 16px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
.m-pet-card.selected {
    border-color: var(--m-pink-accent);
    background: #FDF4FF;
}
.m-pet-emoji {
    font-size: 36px;
    line-height: 1;
}
.m-pet-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.m-check-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--m-pink-accent);
    display: none;
    align-items: center;
    justify-content: center;
}
.m-pet-card.selected .m-check-badge {
    display: flex;
}
.m-check-badge svg {
    width: 10px;
    height: 10px;
    stroke: white;
}

/* SECTION 2: Input */
.m-input {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    border: 1.5px solid #E5E7EB;
    background: white;
    padding: 0 20px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.m-input::placeholder {
    color: #9CA3AF;
}
.m-input:focus {
    border-color: var(--m-pink-accent);
}

/* SECTION 3: Custom Dropdown */
.m-custom-dropdown {
    position: relative;
    width: 100%;
}
.m-dropdown-trigger {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    border: 1.5px solid #E5E7EB;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
    transition: border-color 0.2s;
    box-sizing: border-box;
    cursor: text;
}
.m-custom-dropdown.open .m-dropdown-trigger {
    border-color: var(--m-pink-accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.m-dropdown-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.m-dropdown-left svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.m-dropdown-left input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    width: 100%;
}
.m-dropdown-left input::placeholder {
    color: #9CA3AF;
}
.m-dropdown-trigger > svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.m-custom-dropdown.open .m-dropdown-trigger > svg {
    transform: rotate(180deg);
}
.m-dropdown-list {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-height: 160px;
    overflow-y: auto;
    z-index: 10;
}
.m-custom-dropdown.open .m-dropdown-list {
    display: block;
}
.m-dropdown-item {
    padding: 14px 20px;
    font-size: 15px;
    color: #111827;
    border-bottom: 1px solid #F9FAFB;
    cursor: pointer;
}
.m-dropdown-item:last-child {
    border-bottom: none;
}
.m-dropdown-item:active {
    background: #F5F3FF;
    color: var(--m-primary-purple);
}

/* SECTION 4: Age & Weight */
.m-age-weight-row {
    display: flex;
    gap: 12px;
}
.m-pill-container {
    flex: 1;
    height: 50px;
    border-radius: 25px;
    border: 1.5px solid #E5E7EB;
    background: white;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}
.m-pill-container input {
    flex: 1;
    text-align: center;
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    min-width: 0; /* Prevents overflow in flex */
}
.m-pill-container input::placeholder {
    color: #9CA3AF;
}

/* Age specific */
.m-age-pill input {
    font-size: 14px;
}
.m-pill-divider {
    width: 1px;
    height: 24px;
    background: #E5E7EB;
}

/* Weight specific */
.m-weight-pill {
    padding: 0 14px;
    gap: 8px;
}
.m-weight-unit {
    font-size: 13px;
    color: #9CA3AF;
    user-select: none;
}
.m-toggle-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #E5E7EB;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.m-toggle-switch.active {
    background: var(--m-pink-accent);
}
.m-toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.m-toggle-switch.active .m-toggle-thumb {
    transform: translateX(16px);
}

/* FIXED BOTTOM BUTTON */
.m-fixed-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 20px 32px;
    background: white;
    border-top: 1px solid #F3F4F6;
    z-index: 10;
}
.m-btn-gradient {
    width: 100%;
    height: 56px;
    background: var(--m-gradient-pink);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(192,38,211,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s;
}
.m-btn-gradient:active {
    transform: scale(0.98);
}
