:root {
    /* Brand Colors based on manual */
    --primary-color: #A11D2C;
    --primary-hover: #505050;
    /* Based on hoverstate for red button in manual */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(25, 25, 25, 0.85);
    --text-light: #ffffff;
    --text-muted: #8F8F8F;
    /* Hoverstate for text from nav manual */
    --border-color: #333;
    --input-bg: rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-main: 'DIN2014-Regular', 'Inter', sans-serif;
    --font-heading: 'DIN2014-Demi', 'Oswald', sans-serif;
    --font-bold: 'DIN2014-Bold', 'Oswald', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 14px;
    /* Body size from guide */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    /* From guide */
    padding: 0 5%;
    background: #111;
    /* Triumph dark header */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-img {
    height: 40px;
    /* Adjusted to fit 70px header */
    width: 128px;
    /* From guide: Triumph logo lockup is 128px wide */
    display: block;
}

.btn-outline {
    display: inline-block;
    padding: 0 24px;
    height: 48px;
    /* Button height from guide */
    line-height: 48px;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 17px;
    /* Button size from guide */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--text-light);
    background-color: var(--text-light);
    color: #000;
}

/* Typography Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* From guide */
}

h1 {
    font-size: 30px;
    line-height: 1.2;
}

h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

/* Buttons */
.btn-primary,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0 20px;
    /* Fluid center, 20px either side from guide */
    height: 48px;
    /* 48px height on desktop from guide */
    font-family: var(--font-heading);
    font-size: 17px;
    /* Size 17 from guide */
    line-height: 22px;
    /* Line 22 from guide */
    letter-spacing: 0.5px;
    /* Spacing 0.5 from guide */
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    /* Square edges in Triumph guide */
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-submit:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-submit:disabled {
    background-color: #505050;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: #000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bonneville_family_my26_16927_jp_hpr_1920x1080.avif') no-repeat center center/cover;
    opacity: 0.6;
    animation: zoomInOut 30s ease-in-out infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-bold);
    /* Hero Slides Heading: DIN 2014 Bold */
    font-size: clamp(45px, 8vw, 62px);
    /* Hero slide title 62px from guide */
    line-height: 1.05;
    margin-bottom: 25px;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    margin-bottom: 50px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Section */
.form-section {
    padding: 120px 20px;
    background-color: var(--bg-dark);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.03) 0%, rgba(10, 10, 10, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 40px 20px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: var(--primary-color);
}

.triumph-form input,
.triumph-form select {
    width: 100%;
    padding: 15px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-light);
    font-size: 16px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.triumph-form input:focus,
.triumph-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
    background: rgba(15, 15, 15, 0.9);
}

/* Select Styling Tweaks */
.triumph-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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 1rem center;
    background-size: 1em;
}

.triumph-form select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

::placeholder {
    color: #666;
    opacity: 1;
}

.form-actions {
    margin-top: 50px;
    text-align: center;
}

.btn-submit {
    width: 100%;
    max-width: 320px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 20px 20px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
    width: 100%;
}