/* Custom Fonts */
@font-face {
    font-family: "EMprint-Bold";
    font-display: swap;
    src: url("EMprint-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "EMprint-Regular";
    font-display: swap;
    src: url("EMprint-Regular.ttf") format("truetype");
}

/* CSS Variables */
:root {
    --primary-blue: #134A9A;
    --dark-gray: #161616;
    --light-blue: #7EBEC5;
    --white: #ffffff;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: #000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'EMprint-Bold', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

sup {
    /*vertical-align: super;
    font-size: 1rem;*/
    bottom: 2px;
}

h4.prize-subtitle sup {
    /* vertical-align: super; */
    font-size: 0.62em;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 0;
    margin: 0;
}

.header-row {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-logo img {
    width: 200px;
    height: auto;
}

.header-menu {
    display: flex;
    align-items: center;
}

.language-selector {
    border: 2px solid #000;
    border-radius: 50px;
    padding: 10px 30px 10px 15px;
    font-weight: 500;
    font-size: 20px;
    color: var(--dark-gray);
    text-decoration: none;
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: #fff;
}

.language-selector:hover {
    color: var(--dark-gray);
    text-decoration: none;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #134A9A;
    border-radius: 3px;
    right: 0;
    top: calc(100% + 2px);
    padding-top: 3px;
}

.language-dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
}

.language-dropdown-content a {
    color: var(--dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 20px;
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
}

.language-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.language-dropdown-content a:first-child {
    border-radius: 3px 3px 0 0;
}

.language-dropdown-content a:last-child {
    border-radius: 0 0 3px 3px;
}

.language-dropdown:hover .language-dropdown-content,
.language-dropdown-content:hover {
    display: block;
}

.language-selector::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #134A9A;
    border-radius: 3px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 160px;
    margin-top: 10px;
}

.mobile-language-menu.active {
    display: block;
}

.mobile-language-menu a {
    color: var(--dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 20px;
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
}

.mobile-language-menu a:hover {
    background-color: #f1f1f1;
}

.mobile-language-menu a:first-child {
    border-radius: 3px 3px 0 0;
}

.mobile-language-menu a:last-child {
    border-radius: 0 0 3px 3px;
}

/* Hero Section */
.hero-section {
    background-image: url('images/Mobil1_Microphones.jpg');
    background-size: cover;
    background-position: center;
    min-height: 800px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.hero-title {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 125px;
    color: #FFFFFF !important;
    line-height: 1.1em;
    text-align: center;
    margin-top: 475px;
    margin-bottom: 0;
}

/* Contest Closed Section */
.contest-closed-section {
    padding: 54px 0;
}

.contest-closed-title {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 65px;
    color: var(--primary-blue) !important;
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 0;
}

.divider {
    border-top: 1px solid #808080;
    margin: 54px auto;
    width: 90%;
}

/* Prize Section */
.prize-section {
    padding: 54px 0 54px;
}

.prize-title {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 60px;
    color: #000000 !important;
    line-height: 1.1em;
    margin-bottom: 20px;
}

.prize-subtitle {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 60px;
    color: #000000 !important;
    line-height: 1.2em;
}

.prize-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

.row-intro {
    padding-top: 50px;
    padding-bottom: 30px;
}
/* Content Section */
.content-section {
    font-size: 36px;
    line-height: 1.4em;
    color: #161616;
}

.content-section h3 {
    color: var(--primary-blue) !important;
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 0;
}

.content-section ul {
    list-style-type: square;
    padding-left: 25px;
    margin-top: 0;
    font-size: 24px;
}

p {
    font-size: 24px;
    line-height: 1.8em;
    margin-bottom: 0;
}

strong {
    font-family: 'EMprint-Bold', Helvetica, Arial, sans-serif;
}

.content-section .title {
    font-size: 30px;
    line-height: 1.8em;
    margin-bottom: 10px;
    margin-top: 30px;
}

.content-spacing {
    margin-bottom: 27px;
}

/* Thank You Section */
.thank-you-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    margin-bottom: 50px;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin-bottom: 20px;
}

.thank-you-title {
    font-family: 'EMprint-Bold', Helvetica, Arial, sans-serif;
    font-size: 48px;
    color: var(--primary-blue) !important;
    margin-bottom: 30px;
}

.thank-you-message {
    font-size: 24px;
    line-height: 1.6em;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 20px;
}

.thank-you-message a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.thank-you-message a:hover {
    text-decoration: none;
}

/* Form Section */
.form-section {
    padding: 0 0 50px;
}

.form-container {
    max-width: 75%;
    margin: 0 auto;
}

.form-label {
    font-size: 18px;
    line-height: 21px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control, .form-select {
    height: 50px;
    font-size: 18px;
    line-height: 21px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    color: rgba(0, 0, 0, 0.7);
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: none;
}

textarea.form-control {
    height: auto;
}

.required-field::after {
    content: " *";
    color: #d63637;
}

/* Form Validation Error Styles */
.form-control.error, .form-select.error {
    border-color: #d63637;
    border-width: 2px;
}

.form-check-input.error {
    border-color: #d63637;
    border-width: 2px;
}

.error-message {
    color: #d63637;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

.form-check-input {
    width: 25px;
    height: 25px;
}

.form-check {
    margin-top: 10px;
}

.form-check-label {
    font-size: 1.4rem;
    font-weight: 600;
    margin-left: 10px;
    text-wrap: balance;
    display: block;
}

.terms-link {
    color: rgba(0, 0, 0, 0.85);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.submit-btn {
    width: 250px;
    border-radius: 96px !important;
    font-weight: bold;
    font-size: 24px !important;
    height: 48px;
    background-color: #000000;
    border: none;
    color: #ffffff;
    margin-top: 0;
}

.submit-btn:hover {
    background-color: #000;
    color: #ffffff;
}

.form-row-spacing {
    margin-bottom: 20px;
}

.field-note {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 20px;
}

.honeypot {
    position: absolute !important;
    overflow: hidden !important;
    display: inline !important;
    height: 1px !important;
    width: 1px !important;
    z-index: -1000 !important;
    padding: 0 !important;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background-color: #f0f4f8;
}

.file-upload-area.error {
    border-color: #d63637;
    border-width: 2px;
    background-color: #fff5f5;
}

.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background-color: #e3f2fd;
}

.file-upload-content {
    pointer-events: none;
}

.upload-icon {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.upload-text {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    margin: 10px 0 5px;
}

.upload-subtext {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin: 5px 0;
}

.file-name {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 15px;
    min-height: 20px;
}

/* Footer Logo Section */
.footer-logo-section {
    padding: 0 0 120px;
}

.footer-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: #ffffff;
    padding: 17px 0 10px;
}

.footer-content {
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 0.9em;
    margin-top: 14px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-text {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    line-height: 1.2em;
    margin-top: 14px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .hero-section {
        min-height: 800px;
    }

    .hero-title {
        font-size: 64px;
        margin-top: 475px;
    }

    .contest-closed-section {
        padding: 54px 0;
    }

    .contest-closed-title {
        font-size: 50px;
        line-height: 1.2em;
    }

    .prize-title {
        font-size: 44px;
    }

    .prize-subtitle {
        font-size: 70px;
    }

    .prize-image {
        max-width: 255px;
    }

    .content-section {
        font-size: 36px;
    }

    .content-section p {
        font-size: 30px;
    }

    .footer-logo {
        max-width: 500px;
    }
}

@media (max-width: 860px) {
    .submit-btn {
        padding: 15px 10px !important;
        font-size: clamp(1.25rem, 0.5rem + 1.5vw, 2rem) !important;
        height: auto !important;
        min-height: 4rem;
    }
}

@media (max-width: 767px) {
    /* Hide desktop language dropdown, show mobile hamburger */
    .language-dropdown {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-menu {
        position: relative;
    }

    .hero-section {
        min-height: 640px;
    }

    .hero-title {
        font-size: 58px;
        margin-top: 400px;
    }

    .contest-closed-section {
        padding: 0;
    }

    .contest-closed-title {
        font-size: 28px;
        line-height: 1.2em;
        padding: 0 20px;
    }

    .prize-section {
        padding-top: 0;
    }

    .prize-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .prize-title {
        font-size: 34px;
    }

    .prize-subtitle {
        font-size: 36px;
        text-wrap: balance;
    }

    .prize-image {
        max-width: 175px;
    }

    .content-section,
    .content-section p,
    .content-section ul li,
    .content-section h3 {
        font-size: 24px;
    }

    .form-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Thank You Section Mobile */
    .thank-you-section {
        padding: 40px 0;
    }

    .thank-you-content {
        padding: 20px;
    }

    .thank-you-title {
        font-size: 32px;
    }

    .thank-you-message {
        font-size: 18px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .footer-logo {
        max-width: 100%;
        padding: 0 20px;
    }

    .footer-text {
        line-height: 1.3em;
    }

    .footer-content {
        padding: 0 20px;
    }

    /* Align all mobile content consistently */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-12,
    .col-md-6,
    .col-md-4,
    .col-md-8,
    .col-lg-7,
    .col-lg-5 {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 760px) {
    .city-field {
        flex: 1 1 50%;
    }

    .province-field {
        flex: 1 1 30%;
    }

    .postal-field {
        flex: 0 1 20%;
    }
}

/* Terms and Conditions specific styles */
.page-title-section {
    background-color: var(--primary-blue);
    padding: 60px 0;
    margin: 0;
}

.page-title-section h1 {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    font-size: 60px;
    color: #FFFFFF;
    text-align: left;
    font-weight: bold;
    margin: 0;
    line-height: 1.2em;
}

.terms-content {
    max-width: 75%;
    margin: 60px auto;
    padding: 0 20px;
    font-size: 1.2rem;
}

.terms-content p,
.terms-content li {
    font-family: 'EMprint-Regular', Helvetica, Arial, sans-serif;
    line-height: 1.8em;
    color: #161616;
    margin-bottom: 15px;
}

.terms-content strong {
    font-family: 'EMprint-Bold', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.terms-content em {
    font-style: italic;
}

.terms-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.terms-content ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 20px;
}

.terms-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.terms-content a:hover {
    color: var(--dark-gray);
}

.terms-content p[style*="text-align: center"] {
    text-align: center;
}

@media (max-width: 767px) {
    .terms-content {
        max-width: 100%;
        margin: 30px auto;
    }

    .terms-content h1 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .terms-content p,
    .terms-content li {
        font-size: 14px;
    }
}
