:root {
    /* Corporate Theme Colors based on screenshot */
    --primary-blue: #284b8f; /* Nav bar and links */
    --primary-orange: #f47a20; /* Main heading */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-page: #ffffff;
    --input-bg: #f8f9fa;
    --input-border: #ced4da;
    
    /* System Colors */
    --error-color: #dc3545;
    --success-color: #28a745;
    
    /* Typography */
    --font-family: 'Roboto', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Header --- */
.corporate-header {
    background: var(--bg-light);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-img {
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
    transform: translateY(-2px) scale(1.02);
}

.header-right .logo-img {
    height: 40px;
}

/* --- Navigation --- */
.corporate-nav {
    background-color: var(--primary-blue);
    padding: 1rem 3rem;
}

.corporate-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.corporate-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
}

.corporate-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.corporate-nav a:hover {
    color: #e2e8f0;
}

.corporate-nav a:hover::after {
    transform: scaleX(1);
}

/* --- Main Layout --- */
.container {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

/* --- Left Column Typography --- */
.left-column {
    padding-right: 1rem;
}

.page-title {
    color: var(--primary-orange);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.page-description {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.page-contact {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.page-contact a {
    color: var(--primary-blue);
    text-decoration: none;
}

.team-signoff {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Hero Banner --- */
#hero-banner {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-blue);
    position: relative;
    display: none; /* hidden until js loads it */
}

#hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    pointer-events: none;
}

/* --- Form Column --- */
.form-card {
    background: var(--bg-light);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
}

/* --- Form Layout --- */
#registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

/* --- Labels & Inputs --- */
.form-label {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.required-asterisk {
    color: var(--error-color);
    margin-left: 0.2rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    padding: 0.7rem 0.8rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(40, 75, 143, 0.15);
}

/* --- Checkbox --- */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.form-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.4;
}

/* --- Validation Error --- */
.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
    opacity: 0;
}

@keyframes slideFadeDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--error-color);
    background-color: #fff8f8;
}

.form-group.error .error-msg {
    display: block;
    animation: slideFadeDown 0.3s ease forwards;
}

/* --- Submit Button --- */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    width: auto;
    margin-top: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 75, 143, 0.3);
}

.btn-primary:hover {
    background-color: #1e3a70;
    box-shadow: 0 6px 16px rgba(40, 75, 143, 0.4);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .spinner {
    display: inline-block;
}

/* --- Footer --- */
.corporate-footer {
    background-color: #1a3363; /* slightly darker than primary blue */
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    font-size: 0.95rem;
}

.corporate-footer p {
    margin-bottom: 0.8rem;
    color: #e2e8f0;
}

.corporate-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.corporate-footer a:hover {
    color: #ff9d5c;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.modal h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #registration-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .corporate-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .corporate-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
