/* grounding.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #004976;
    --sage-green: #b9beaa;
    --light-grey: #f8f8f8;
    --text-color: #333333;
    --white: #ffffff;
    --accent-blue: #005b96;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

h1, h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
    text-align: center;
}

.intro, .step, .summary {
    display: none;
    animation: fadeIn 0.8s ease;
}

.active {
    display: block;
}

textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    resize: vertical;
    min-height: 160px;
    margin-bottom: 25px;
    background-color: var(--light-grey);
    transition: border 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}


textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    transition: 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background-color: var(--accent-blue);
}

.progress-container {
    height: 4px;
    background-color: #e0e0e0;
    margin: 30px 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    width: 0;
    transition: width 0.5s ease;
}

.step, .summary-item {
    padding: 30px;
}

.summary-item strong {
    display: block;
    margin-bottom: 10px;
}

.credit {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8em;
    color: #777;
}

.credit a {
    color: var(--primary-blue);
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container { padding: 25px; }
    h1 { font-size: 1.8em; }
}
