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

:root {
    --primary: #A31B26;
    --primary-light: #C02C39;
    --primary-dark: #7D111A;
    --bg-color: #F8F9FA;
    --text-color: #2D3748;
    --text-light: #718096;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

html, body, div, span, h1, h2, h3, h4, p, a, ul, li, form, label, header, footer, nav, section {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(163, 27, 38, 0.03) 0%, transparent 20%), 
                      radial-gradient(circle at 90% 80%, rgba(163, 27, 38, 0.04) 0%, transparent 20%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

b, strong {
    font-weight: 600;
}

/* Layout */
#main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

#header img {
    max-height: 80px;
    transition: var(--transition);
}

#container {
    flex-grow: 1;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

/* Navigation & Lists */
ul.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
}

ul.nav-grid li {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

ul.nav-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(163, 27, 38, 0.1);
    border-color: rgba(163, 27, 38, 0.2);
}

ul.nav-grid li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    height: 100%;
}

a.back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

a.back:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* Forms */
input[type="text"], 
textarea, 
select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    margin: 8px 0 20px 0;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background-color: #F8FAFC;
    color: var(--text-color);
}

input[type="text"]:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(163, 27, 38, 0.1);
    background-color: #ffffff;
}

.button, 
input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(163, 27, 38, 0.3);
    margin-top: 10px;
    display: inline-block;
}

.button:hover, 
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(163, 27, 38, 0.4);
}

.button:active, 
input[type="submit"]:active {
    transform: translateY(0);
}

/* Footer */
#footer {
    background-color: var(--text-color);
    color: #ffffff;
    padding: 50px 20px 30px;
    margin-top: auto;
    font-size: 13px;
}

#footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section i {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* Results */
.results {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Contact Page specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content {
        padding: 25px;
    }
}