/* General Layout */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f9f9f9, #e8eaf6);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 90%;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-out forwards;
}

/* Fade-In Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo and Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
}

.subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-top: 10px;
    color: #444;
}

/* Focus Animation for Form Fields */
input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.3);
    outline: none;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

button[type="submit"] {
    padding: 12px 20px;
    margin-top: 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #d32f2f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #b71c1c;
    box-shadow: 0px 8px 15px rgba(183, 28, 28, 0.3);
    transform: scale(1.05);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Polished Footer */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 20px;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    input[type="text"],
    input[type="tel"],
    textarea {
        font-size: 14px;
    }

    button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }

    .index-links a {
        font-size: 16px;
    }
}

/* Index Page Styles */
.index-links {
    text-align: center;
    margin-top: 30px;
}

.index-links a {
    display: inline-block;
    font-size: 18px;
    color: #d32f2f;
    text-decoration: none;
    padding: 10px 18px;
    margin: 5px;
    border: 1px solid #d32f2f;
    border-radius: 5px;
    transition: all 0.3s;
    background-color: #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.index-links a:hover {
    background-color: #d32f2f;
    color: #ffffff;
}

/* Background Accent Shapes */
.shape1, .shape2, .shape3, .shape4 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: float 5s ease-in-out infinite;
}

/* Top-left larger red gradient circle */
.shape1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d32f2f, #b71c1c);
    top: -60px;
    left: -60px;
}

/* Bottom-right larger pink gradient circle */
.shape2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ffcdd2, #e57373);
    bottom: -60px;
    right: -60px;
}

/* Top-right small red gradient circle */
.shape3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #d32f2f, #b71c1c);
    top: 10%;
    right: 12%;
}

/* Bottom-left small pink gradient circle */
.shape4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #ffcdd2, #e57373);
    bottom: 12%;
    left: 8%;
}

/* Floating animation for background shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}
