/* Center the form on the page while keeping content left-aligned */
.found-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif;
}

/* Hover effect for the form */
.found-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Style each form group */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

/* Style labels */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d2d2d;
    display: block;
    font-size: 1.1rem;
}

/* Style text and tel inputs */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus effect for inputs */
.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Style textarea */
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus effect for textarea */
.form-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Style the submit button */
.form-submit {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover and active effects for the submit button */
.form-submit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.form-submit:active {
    transform: translateY(0);
}

/* Styling for Item Details Section (Card) */
.item-details {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevent content from overflowing */
}

/* Hover effect for the card */
.item-details:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Card header */
.item-details h3 {
    font-size: 1.8rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    font-weight: 700;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* Card content */
.item-details p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin: 12px 0;
    width: 100%;
    line-height: 1.6;
}

/* Fallback for no image */
.item-details p:last-child {
    color: #777;
    font-style: italic;
    margin-top: 20px;
}

.item-details strong {
    color: #2d2d2d;
    font-weight: 600;
}

/* Style the item image */
.item-image {
    max-width: 100%;
    max-height: 300px;
    width: 100%; /* Ensure image takes full container width */
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain; /* Prevent distortion, fit within bounds */
}

/* Hover effect for the image */
.item-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Style the page heading */
.head2 {
    text-align: center;
    color: #2d2d2d;
    margin: 30px 0;
    font-size: 2rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

/* Success message styling */
.success-message {
    max-width: 600px;
    margin: 20px auto;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 1s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Style success message children */
.success-message h2 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-message p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.success-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .found-form,
    .item-details,
    .success-message {
        max-width: 100%;
        padding: 15px;
    }

    .item-details h3 {
        font-size: 1.5rem;
    }

    .item-image {
        max-height: 200px;
    }

    .head2 {
        font-size: 1.8rem;
    }
}