:root {
    --primary-color: #00a0e4; /* Level Agency blue */
    --text-color: #ffffff;
    --background-color: #000000; /* Black background */
    --card-background: #111111; /* Dark card background */
    --border-color: #333333;
    --success-color: #4caf50;
    --error-color: #f44336;
    --accent-color: #00a0e4; /* Level Agency blue for accents */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 30px;
}

.form-container, .response-container {
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 160, 228, 0.2);
}

.submit-btn, .back-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover, .back-btn:hover {
    background-color: #0089c3;
    transform: translateY(-2px);
}

.submit-btn:active, .back-btn:active {
    transform: translateY(0);
}

.back-btn {
    margin-top: 20px;
    background-color: #444444;
}

.back-btn:hover {
    background-color: #555555;
}

.response-container {
    text-align: center;
}

.loader {
    border: 4px solid #333333;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#responseContent {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .form-container, .response-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

.response-data {
    margin-top: 15px;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.response-data pre {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Firefox */
    white-space: -pre-wrap;      /* Opera <7 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* IE */
    background-color: #333333;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
    color: #e0e0e0;
    border: 1px solid #444444;
}



/* Button styling */
.btn-primary {
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #357ABD;
}

.btn-primary:active {
    background-color: #2A62A3;
    transform: translateY(1px);
}

/* Dropdown styling */
select.form-control {
    padding: 0.5rem;
    width:100%;
    background-image: none;
}

.form-group label {
    width: 100%;
    display: inline-block;
}

.brand-logos img {
    margin-right:1rem;
    margin-bottom:1rem;
}