#petExerciseForm {
    max-width: 100%;
    width: 60%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    padding: 30px 30px 30px 30px !important;
    border-radius: 10px 10px 10px 10px !important;
    box-shadow: 0px 0px 32px -21px rgba(0, 0, 0, 0.5) !important;
}

#petExerciseForm label {
    font-family: 'Inter';
}
#petExerciseForm .form-group {
    margin-bottom: 30px;
}
#petExerciseForm .environment-buttons button, #petExerciseForm .time-presets button, #petExerciseForm .goal-chips button {
    background: #4353ff1a !important;
    color: #000000;
    box-shadow: none;
    border: 0px solid #4353ff;
    border-radius: 50px;
    width: 32% !important;
    font-size: 14px !important;
}

#petExerciseForm .environment-buttons .env-btn.active, #petExerciseForm .time-presets .time-btn.active, #petExerciseForm .goal-chips .goal-chip.active {
    background: #4353ff !important;
	color: #fff;
}

.pep-error-message .pep-error a {
    background: #4758FF !important;
}

#petExerciseForm .goal-chips button:hover, #petExerciseForm .time-presets button:hover, #petExerciseForm .environment-buttons button:hover  {
    background: #4353ff !important;
    color: #fff;
}

#petExerciseForm .btn-row-group {
    display: flex;
    column-gap: 20px;
    align-items: center;
}


.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.required {
    color: #d93025;
}

/* Breed Autocomplete Styles */
.breed-autocomplete-wrapper {
    position: relative;
}

.breed-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.breed-option {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.breed-option:hover {
    background-color: #f8f9fa;
}

.breed-option:last-child {
    border-bottom: none;
}

/* Environment Buttons */
.environment-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.env-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.env-btn:hover {
    border-color: #4a67ff;
    color: #4a67ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 103, 255, 0.2);
}

/* .env-btn.active {
    background: linear-gradient(135deg, #4a67ff, #3a52cc);
    border-color: #4a67ff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 255, 0.3);
} */

/* Goal Chips */
.goal-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.goal-chip {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #555;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goal-chip:hover {
    border-color: #4a67ff;
    color: #4a67ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 103, 255, 0.2);
}

/* .goal-chip.active {
    background: linear-gradient(135deg, #4a67ff, #3a52cc);
    border-color: #4a67ff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 255, 0.3);
} */

/* Time Presets */
.time-presets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.time-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* .time-btn:hover {
    border-color: #4a67ff;
    color: #4a67ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 103, 255, 0.2);
} */

/* .time-btn.active {
    background: linear-gradient(135deg, #4a67ff, #3a52cc) !important;
    border-color: #4a67ff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 255, 0.3);
} */

/* .time-btn[data-value="other"] {
    min-width: 90px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: #6c757d;
    color: white;
} */

.time-btn[data-value="other"]:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    border-color: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Other Time Input */
.other-time-input {
    margin-top: 10px;
}

.other-time-input input {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.other-time-input input:focus {
    border-color: #4a67ff;
    outline: none;
}

/* Form Inputs */
#petExerciseForm input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 0px;
    transition: border-color 0.3s;
    font-family: inherit;
}

#petExerciseForm input[type="text"]:focus {
    border-color: #4a67ff;
    outline: none;
}

#petExerciseForm select {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

#petExerciseForm select:focus {
    border-color: #4a67ff;
    outline: none;
}

#petExerciseForm textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: inherit;
}

#petExerciseForm textarea:focus {
    border-color: #4a67ff;
    outline: none;
}

/* Submit Button */
#petExerciseForm button[type="submit"]{
    background: #4758FF !important;
    color: #fff !important;
    border: none;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease !important;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(74, 103, 255, 0.3) !important;
    margin-top: 0px !important;
}

#petExerciseForm .pep-reset-btn {
    background: #eee !important;
    color: #000 !important;
    border: none;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease !important;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(74, 103, 255, 0.3) !important;
    margin-top: 0px !important;
}

#petExerciseForm button[type="submit"]:hover:not(:disabled) {
    background: #4758FF;
    transform: translateY(-2px);
}

#petExerciseForm button[type="submit"]:disabled {
    background: #4758FF;
    cursor: not-allowed;
    transform: none;
}

#exerciseResult {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}



/* Video grid and cards */
.pep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.pep-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pep-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.pep-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.pep-thumb-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pep-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close-modal:hover {
    color: #333;
}

#videoContainer {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    margin-top: 20px;
}

#videoFrame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* Video Thumbnail Styles */
.video-thumbnail {
    position: relative;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.video-thumbnail-fallback {
    width: 100%;
    height: 112px;
    background: #f2f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
}

.video-link {
    text-decoration: none;
    color: inherit;
}

.workout-videos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.workout-video-item {
    width: 200px;
}

.exercise-name {
    text-align: center;
    margin-top: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pep-thumb-fallback {
    background: linear-gradient(135deg, #f6f8ff, #eef1ff);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pep-thumb-fallback-text {
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: #2b2b2b;
    font-size: 14px;
}

.pep-title {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Workout video items with hover animations */
.workout-videos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.workout-video-item {
    width: 200px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workout-video-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.workout-video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.workout-video-item img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.workout-video-item:hover img {
    transform: scale(1.05);
}

.workout-video-item p {
    text-align: center;
    margin: 8px 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.workout-video-item:hover p {
    color: #4a67ff;
}

/* Workout tips section */
.pep-workout-tips {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border-radius: 12px;
    border-left: 4px solid #4a67ff;
}

.pep-workout-tips h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.pep-workout-tips ul {
    margin: 0;
    padding-left: 20px;
}

.pep-workout-tips li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.pep-buy-link {
    font-weight: 700;
    color: #ffffff !important;
    background: #1a73e8;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Error visuals */
.pep-error {
    color: #d93025;
    font-weight: 600;
}

.pep-field-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217,48,37,0.1);
}

.pep-inline-error {
    color: #d93025;
    font-size: 13px;
    margin: 6px 0 12px 0;
}

/* Enhanced error messages */
.pep-error-message {
    background: #fef7f7;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.pep-error-message .pep-error {
    margin-bottom: 0px;
    font-size: 16px;
}

.pep-retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pep-retry-btn:hover {
    background: #c82333;
}

/* Reset Button */
.pep-reset-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    margin: 15px 0 0 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: 100% !important;
}

.pep-reset-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

/* Loading improvements */
#loader {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

#loader .spinner {
    margin: 0 auto 15px auto;
    width: 50px;
    height: 50px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#loader p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive adjustments */


@media (min-width: 768px) and (max-width: 1024px) {

#petExerciseForm {
    width: 80%;
}

}

@media (max-width: 767px) {
    .pep-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    #petExerciseForm {
		max-width: 100%;
		width: 100%;
		padding: 20px !important;
	}
    
    .environment-buttons {
        flex-direction: row;
        gap: 8px;
    }
    .goal-chips, .time-presets {
		display: block;
		
	}
	.goal-chip, .time-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .env-btn {
        min-width: auto;
        width: 100%;
    }
    #petExerciseForm button[type="submit"], #petExerciseForm .pep-reset-btn {
		padding: 15px !important;
	}
    
	
	#petExerciseForm .environment-buttons button, #petExerciseForm .time-presets button, #petExerciseForm .goal-chips button {
    width: 49% !important;
    font-size: 14px !important;
    margin-bottom: 17px;
	padding: 10px 10px;
}
    
    .time-presets {
        gap: 6px;
    }
    
    .time-btn {
        padding: 6px 8px;
        font-size: 13px;
        min-width: 50px;
        flex: 1;
    }
    
/*     .time-btn[data-value="other"] {
        min-width: 60px;
    } */
    
    .pep-reset-btn {
        display: block !important;
        margin: 10px 0 0 0 !important;
        width: 100% !important;
    }
    
    button#pepSubmitBtn {
        width: 100% !important;
    }
    
    .breed-dropdown {
        max-height: 150px;
    }
    
    .breed-option {
        padding: 8px 10px;
        font-size: 14px;
    }
}