:root {
    /* Palette inspired by clean medical/professional aesthetics */
    --primary-color: #0F4878;
    /* VivaDom Blue */
    --primary-dark: #0a3356;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-secondary: #666666;
    --border-color: #dddddd;
    --error-color: #e53935;
    --success-color: #43a047;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 6px solid var(--primary-color);
}

.header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.content {
    padding: 30px 25px;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--primary-color);
    text-align: center;
}

.account-info {
    background-color: #e0f2f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    /* Verify if left align is better for reading address */
}

.account-row {
    margin-bottom: 5px;
}

.account-label {
    font-weight: normal;
    color: var(--text-secondary);
    margin-right: 5px;
}

.account-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-main);
}

.account-address {
    color: var(--text-main);
    font-size: 1rem;
    display: block;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: #fff;
    /* Ensure white bg */
    font-family: inherit;
}

select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background-color: #ffebee;
    color: var(--error-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}