.adopt-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
}

.adopt-container h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.intro-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

/* Form Styles */
form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

fieldset {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

fieldset:last-of-type {
    margin-bottom: 30px;
}

legend {
    font-size: 20px;
    font-weight: 600;
    color: #001f3f;
    padding: 0 10px;
    margin-left: -10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #001f3f;
    background-color: #f0f8ff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    background-color: white;
    cursor: pointer;
}

.required {
    color: #d32f2f;
    font-weight: 700;
}

/* Checkbox Styles */
.checkbox-group-single {
    margin-bottom: 15px;
}

.checkbox-group-single .checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    font-weight: normal;
}

.checkbox-group-single input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #001f3f;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.submit-btn {
    padding: 12px 40px;
    background-color: #001f3f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #003366;
}

.submit-btn:active {
    background-color: #001428;
}

.cancel-btn {
    padding: 12px 40px;
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    text-align: center;
}

.cancel-btn:hover {
    background-color: #bbb;
}

/* Success and Error Messages */
.success-notification,
.error-notification {
    text-align: center;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
}

.success-notification {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.success-notification i {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
    display: block;
}

.success-notification h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1b5e20;
}

.success-notification p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #2e7d32;
}

.error-notification {
    background-color: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.error-notification i {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 20px;
    display: block;
}

.error-notification h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #b71c1c;
}

.error-notification p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #c62828;
}

/* Button Styles in Messages */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #001f3f;
    color: white;
}

.btn-primary:hover {
    background-color: #003366;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.btn-secondary:hover {
    background-color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .adopt-container {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .adopt-container h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .intro-text {
        font-size: 14px;
        margin-bottom: 30px;
    }

    form {
        padding: 20px;
    }

    fieldset {
        padding: 15px;
        margin-bottom: 20px;
    }

    legend {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .success-notification,
    .error-notification {
        padding: 30px 20px;
    }

    .success-notification i,
    .error-notification i {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .success-notification h2,
    .error-notification h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .success-notification p,
    .error-notification p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .adopt-container {
        padding: 15px 10px;
        margin: 15px auto;
    }

    .adopt-container h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .intro-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    form {
        padding: 15px;
    }

    fieldset {
        padding: 12px;
        margin-bottom: 15px;
    }

    legend {
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 12px;
    }
}
