:root {
    --primary-red: #C8102E;
    --primary-red-dark: #A00D25;
    --primary-red-light: #E31E3D;
    --secondary-red: #DC143C;
    --accent-red: #FF1744;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --bg-light: #F8F9FA;
    --success-green: #28A745;
    --white: #FFFFFF;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-brand-text {
    font-size: 1.1rem;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
}

.navbar-brand:hover,
.nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Registration Form Styles */
.registration-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 15px;
}

.registration-header {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    color: var(--white);
}

.registration-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.registration-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.registration-text-content {
    flex: 1;
    min-width: 250px;
}

.registration-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.2;
}

.registration-hotline {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--white);
    font-weight: 600;
}

.registration-hotline a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.registration-hotline a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.registration-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

.registration-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: " *";
    color: var(--primary-red);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

.text-danger {
    color: var(--primary-red) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-info {
    background-color: #17a2b8;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-info:active {
    transform: translateY(0);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-submit,
.btn-reset {
    min-width: 150px;
}

.btn-test-data {
    min-width: 150px;
    display: none !important;
}

/* Alert Styles */
.alert-success {
    background-color: #d4edda;
    border-color: var(--success-green);
    color: #155724;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Focus Styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        max-width: 120px;
    }

    .navbar-brand-text {
        font-size: 0.95rem;
    }

    .registration-container {
        margin: 1rem auto;
        padding: 0 10px;
    }

    .registration-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .registration-header-content {
        gap: 1.5rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .registration-logo {
        height: 60px;
        max-width: 150px;
    }

    .registration-text-content {
        min-width: auto;
    }

    .registration-title {
        font-size: 1.5rem;
    }

    .registration-hotline {
        font-size: 0.95rem;
    }

    .registration-subtitle {
        font-size: 0.9rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
    }

    .row {
        margin: 0;
    }

    .col-md-6,
    .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 30px;
        max-width: 100px;
    }

    .navbar-brand-text {
        font-size: 0.85rem;
    }

    .registration-header-content {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .registration-logo {
        height: 50px;
        max-width: 150px;
    }

    .registration-text-content {
        width: 100%;
    }

    .registration-title {
        text-align: center;
    }

    .registration-hotline {
        font-size: 0.9rem;
        text-align: center;
    }

    .registration-subtitle {
        text-align: center;
    }

    .registration-form {
        padding: 1rem;
    }

    .registration-title {
        font-size: 1.25rem;
    }

    .registration-hotline {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* Success Page Styles */
.success-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.success-content {
    max-width: 600px;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.success-info {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.25rem;
}

.countdown-container {
    margin-bottom: 2rem;
}

.countdown-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.countdown-number {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.countdown-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

.success-actions {
    margin-top: 2rem;
}

.btn-home {
    min-width: 200px;
}

/* Loading Spinner Styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.d-none {
    display: none !important;
}

/* Mobile Responsive for Success Page */
@media (max-width: 768px) {
    .success-content {
        padding: 2rem 1.5rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-info {
        padding: 1rem;
    }

    .info-item {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .success-content {
        padding: 1.5rem 1rem;
    }

    .success-title {
        font-size: 1.25rem;
    }

    .success-message {
        font-size: 0.95rem;
    }

    .btn-home {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .form-actions {
        display: none;
    }

    .registration-form {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
