@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #9EA465;
    --primary-hover: #357abd;
    --success-color: #9EA465;
    --danger-color: #ff7675;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --text-color: #2d3436;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background: var(--bg-gradient); */
    background: #9EA465 !important;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.main-container {
    display: flex;
    flex-direction: column;
    background: #9EA465 !important;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.logos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.logos-container img {
    max-width: 150px;
    height: auto;
}

img {
    width: 300px !important;
    display: block;
    justify-self: center;
    margin: 40px;
}

.title-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    display: block;
}

.age-helper {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    margin-bottom: 12px;
    font-style: italic;
}

.form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 650px;
}

h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Page transitions */
.page {
    display: none;
}

#page-1 {
    display: block;
}

/* Ensure Page 1 is visible by default */

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-family: inherit;
}

/* Disabled input style for Google Places when manual address is enabled */
input[type="text"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
    color: #6c757d;
}

/* Checkbox Group Styling for Page 4 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

input.error,
select.error,
textarea.error {
    border-color: var(--danger-color);
    background-color: #fff0f0;
}

.checkbox-group label.error {
    color: var(--danger-color);
    font-weight: 500;
}

/* General Button Styles */
button,
input[type="submit"] {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
}

/* Navigation & Submit Buttons */
button[id^="next"],
button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    float: right;
}

button[id^="prev"] {
    background-color: #dfe6e9;
    color: var(--text-color);
    float: left;
}

/* --- Pet Action Buttons (Add/Remove inside card) --- */
.pet-action-buttons {
    display: flex;
    gap: 10px;
    /* Space between buttons */
    margin-top: 15px;
    align-items: center;
    justify-content: space-between;
}

.pet-action-buttons .button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.remove-pet-btn {
    background-color: white;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    font-size: 0.9rem;
    padding: 8px 16px;
    width: auto;
    margin-top: 0;
}

.remove-pet-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.add-pet-btn, #next-page-1-btn, .next-page-1-btn {
    background-color: #000000;
    /* Black background */
    color: white;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid #000000;
    width: auto;
    margin-top: 0;
    border-radius: 50px;
}

.add-pet-btn:hover, #next-page-1-btn:hover, .next-page-1-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.next-page-1-btn {
    margin-left: auto !important;
}

/* Pet Form Card Container */
.pet-form {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.pet-form h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Clearfix for floating buttons */
.page::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Styles for Intl Tel Input --- */
.iti {
    width: 100%;
    margin-bottom: 10px;
}

.iti__tel-input {
    width: 100%;
    padding: 12px;
    padding-left: 50px !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-family: inherit;
}

/* --- Context Radio Group Embellishment --- */
.radio-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.radio-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hide default radio button and create custom one for better control if desired, 
   but standard with margin is safer for accessibility/simplicity. 
   Let's stick to standard but styled. */

.radio-group input[type="radio"] {
    margin-right: 15px;
    margin-top: 14px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #ccc;
    /* Light grey border for unchecked state */
    border-radius: 50%;
    /* Make it round */
    -webkit-appearance: none;
    /* Hide default browser styling */
    -moz-appearance: none;
    appearance: none;
    outline: none;
    /* Remove focus outline */
    background-color: white;
    /* White background for the radio button */
    position: relative;
    /* For positioning the inner dot */
}

.radio-group input[type="radio"]:checked {
    border-color: var(--primary-color);
    /* Primary color border when checked */
    background-color: var(--primary-color);
    /* Fill the background with primary color */
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: white;
    /* Inner dot is white */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Emphasize the label of the checked radio button */
.radio-group input[type="radio"]:checked+label {
    color: var(--primary-color);
    font-weight: bold;
}

.radio-group label {
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.radio-group input.error {
    outline: 2px solid var(--danger-color);
    outline-offset: 2px;
}

/* Language Switcher */
.language-switcher a {
    margin-top: 12px;
    margin-left: 15px;
}