*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #1a1a2e;
    color: #fff;
}

.navbar-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-user {
    font-size: 0.9rem;
}

.navbar-form {
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #0078d4;
    color: #fff;
}

.btn-primary:hover {
    background: #006abc;
}

.btn-link {
    background: none;
    color: #fff;
    padding: 0.5rem;
    text-decoration: underline;
    cursor: pointer;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.profile-card, .welcome-card, .login-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-details {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
}

.profile-details dt {
    font-weight: 600;
    color: #666;
}

.profile-details dd {
    margin: 0;
}

.profile-details code {
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.welcome-card, .login-card {
    text-align: center;
}

.welcome-card p, .login-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact Us page */
.contact-us {
    max-width: 900px;
    margin: 0 auto;
}

.contact-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-item strong {
    display: block;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #0078d4;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Editable area spacing */
.editable-area-wrapper {
    margin: 1.5rem 0;
}

/* BizForm styling */
.ktc-form .ktc-form-group {
    margin-bottom: 1.25rem;
}

.ktc-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}

.ktc-form input[type="text"],
.ktc-form input[type="email"],
.ktc-form input[type="tel"],
.ktc-form textarea,
.ktc-form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.ktc-form input:focus,
.ktc-form textarea:focus,
.ktc-form select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.15);
}

.ktc-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ktc-form .ktc-radio-list,
.ktc-form .ktc-checkbox-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.ktc-form .ktc-radio-list label,
.ktc-form .ktc-checkbox-list label {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.ktc-form button[type="submit"],
.ktc-form input[type="submit"] {
    background: #0078d4;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s;
}

.ktc-form button[type="submit"]:hover,
.ktc-form input[type="submit"]:hover {
    background: #006abc;
}

.ktc-form .ktc-validation-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Auth message pages (Error, AccessDenied, SignedOut, ResetPassword) */
.auth-message-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-icon-error {
    background: #fde8e8;
    color: #d32f2f;
}

.auth-icon-denied {
    background: #fff3e0;
    color: #e65100;
}

.auth-icon-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-icon-info {
    background: #e3f2fd;
    color: #1565c0;
}

.auth-message-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.auth-detail {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}
