/* === CSS Variables === */
:root {
    --primary-color: #007a33;
    --primary-hover: #005f27;
    --background-color: #ffffff;
    --text-color: #333;
    --container-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --border-light: #eee;
    --success-bg: #e6ffed;
    --success-border: #b7e4c7;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --info-bg: #e7f3fe;
    --info-text: #31708f;
    --info-border: #bce8f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Global Styles === */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-color);
    padding: 40px 20px;

}

/* === Logo === */
img.logo {
    max-width: 220px;
    margin-bottom: 40px;
}

/* === Typography === */
.page-title {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

/* === Layout === */
.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-center-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* === Containers === */
.form-container {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    padding: 35px 45px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
}

.message-container {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.json-container {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    max-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section {
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    text-align: center;
}

/* === Messages === */
.error-message {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: left;
}

.info-message {
    background-color: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.5;
}

/* === Form Elements === */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1em;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    line-height: 1.6;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    color: var(--text-color);
    margin-bottom: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.2);
}

textarea {
    width: 100%;
    height: 350px;
    padding: 15px;
    font-size: 1em;
    line-height: 1.6;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    resize: vertical;
    background-color: var(--background-color);
    color: var(--text-color);
    margin-bottom: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.2);
}

/* === Responsive Base === */
@media (max-width: 900px) {
    .container {
        max-width: 600px;
        padding: 40px 20px;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .json-container {
        padding: 20px;
        max-width: unset;
        align-items: flex-start;
        text-align: left;
    }
    
    .page-title {
        margin-bottom: 30px;
    }
    
    img.logo {
        margin-bottom: 30px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 40px 20px;
    }
    
    .form-container,
    .json-container {
        padding: 20px;
    }
}
