/* =========================
   Accessibility: Focus Styles
   ========================= */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid #52D949;
    outline-offset: 2px;
    border-color: #2BA522;
    background: #fffbe6;
}

button[type="submit"]:focus {
    outline: 2px solid #52D949;
    outline-offset: 2px;
    border-color: #2BA522;
    background: #fffbe6;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 700px) {
    form {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
    }
    .img-container {
        margin-bottom: 1rem;
        justify-content: center;
    }
    .img-container img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
    }
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea {
        width: 100%;
        min-width: 0;
    }
}
:root {
    --primary-color: #440f48;
    --text-color-2: #eaeaea;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--primary-color);
	color: var(--text-color-2);
	border: 3px solid var(--primary-color);
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form > img {
    width: auto;
    height: 100%;
    max-height: 30rem;
    object-fit: cover;
    margin-right: 1rem;
    display: block;
    border-radius: 10px;
}

.img-container {
    background: var(--primary-color);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.img-container img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0;
    max-height: none;
}

form > div {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 21rem;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
}

textarea {
    width: 21rem;
    height: 6rem;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
}

fieldset {
    flex-direction: column;
    border: 1px solid var(--text-color-2);
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start; /* left-align children */
}

button[type="submit"] {
    background: var(--text-color-2);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
    background: var(--primary-color);
    color: var(--text-color-2);
	border: 2px solid var(--text-color-2);
	font-weight: bold;
	font-size: large;
}

/* =========================
   Clear Form Button Styles
   ========================= */
.clear-form-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    align-self: flex-start;
}
.clear-form-btn:hover, .clear-form-btn:focus {
    background: #fff;
    color: var(--primary-color);
    opacity: 1;
    outline: 2px solid #52D949;
    outline-offset: 2px;
}

