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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0;
    border-radius: 8px;
}

/* Top Bar */
.top-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
}

.top-bar-item i {
    font-size: 14px;
    opacity: 0.9;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-separator {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Main Header */
.main-header {
    background-color: #ed1b24;
    color: #fff;
    padding: 20px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px 0;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon-square {
    width: 40px;
    height: 40px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon-square:hover {
    background-color: #ed1b24;
}

.social-icon-square i {
    font-size: 18px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ed1b24;
    display: inline-block;
    width: fit-content;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ed1b24;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    line-height: 1.6;
}

.footer-contact-item i {
    color: #ed1b24;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item span {
    flex: 1;
}

.newsletter-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.newsletter-btn:hover {
    background-color: #a00d25;
}

.footer-bottom {
    background-color: black;
    padding: 20px;
    margin-top: 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: #ccc;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-link {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #ed1b24;
}

.footer-dot {
    color: #ed1b24;
    font-size: 13px;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ed1b24;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #a00d25;
    transform: translateY(-3px);
}

.application-form {
    padding: 40px;
    background-color: #fff;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.file-upload-section {
    border: 2px dashed rgba(237, 27, 36, 0.25);
    border-radius: 10px;
    background: #fff8f8;
    padding: 25px;
}

.field-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.file-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-input {
    position: relative;
    width: 100%;
    padding: 12px 15px;
    border: 2px dashed #c8102e;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    opacity: 0;
    height: 54px;
}

.file-input-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 2px dashed #c8102e;
    border-radius: 6px;
    font-weight: 600;
    color: #c8102e;
    text-align: center;
    gap: 10px;
    pointer-events: none;
    min-height: 54px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper .file-input {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.file-input-wrapper .file-input-label {
    z-index: 1;
}

.file-input::file-selector-button {
    display: none;
}

.file-selected-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #ed1b24;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #ed1b24;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ed1b24;
}

.form-group select[multiple] {
    min-height: 120px;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ed1b24;
}

.radio-label span {
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #333;
    font-weight: normal;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #ed1b24;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
}

.checkbox-label.compact {
    padding: 6px 10px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
}

.license-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.license-type-options .checkbox-label {
    align-items: center;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #c8102e;
    box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.15);
}

.form-group.has-error .radio-group,
.form-group.has-error .checkbox-label {
    border: 1px solid rgba(200, 16, 46, 0.3);
    border-radius: 12px;
    padding: 10px;
}

.error-message {
    margin-top: 6px;
    color: #c8102e;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.secondary-btn {
    border: 1px solid #c8102e;
    background-color: transparent;
    color: #c8102e;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background-color: #c8102e;
    color: #fff;
}

.experience-entry {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

.experience-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.experience-entry-header h4 {
    margin: 0;
    font-size: 18px;
    color: #c8102e;
}

.remove-experience {
    border: none;
    background: #fff;
    color: #c8102e;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remove-experience:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

.experience-entry .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.experience-entry .form-row .form-group {
    flex: 1;
}

.form-group.checkbox-inline {
    margin-top: 10px;
}

.experience-entry.experience-ongoing-active .end-date-group {
    opacity: 0.6;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 23, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    position: relative;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px 35px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .success-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f3f3;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #c8102e;
    color: #fff;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f7ef;
    color: #2e9f4c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.success-modal h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #1d1d1d;
}

.success-modal p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.primary-btn {
    background: linear-gradient(135deg, #ed1b24, #c8102e);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(200, 16, 46, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 18px rgba(200, 16, 46, 0.3);
}

body.modal-open {
    overflow: hidden;
}

.info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #ed1b24;
    border-radius: 4px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.submit-btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        border-radius: 4px;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-bar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .top-bar-right {
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-bar-separator {
        display: none;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .page-title {
        font-size: 22px;
    }

    .brand-name {
        font-size: 20px;
    }

    .market-text {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .application-form {
        padding: 20px;
    }

    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .brand-name {
        font-size: 18px;
    }

    .market-text {
        font-size: 18px;
    }

    .logo {
        height: 50px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .form-section h2 {
        font-size: 18px;
    }

    .application-form {
        padding: 15px;
    }

    .top-bar-item {
        font-size: 12px;
    }

    .main-footer {
        padding: 40px 15px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 30px;
    }

    .scroll-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-cards {
        max-width: 350px;
        gap: 15px;
    }

    .card-image {
        height: 220px;
    }
}

/* Select dropdown styling */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c8102e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #999;
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.category-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 350px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-image-placeholder {
    font-size: 64px;
    color: #ed1b24;
    opacity: 0.3;
}

.card-content {
    padding: 15px 15px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.card-footer {
    background-color: #ed1b24;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.card-footer i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.category-card:hover .card-footer i {
    transform: translateX(5px);
}

/* Responsive category cards */
@media (max-width: 768px) {

    .category-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .category-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto;
    }

    .card-image {
        height: 250px;
    }

    .card-image-placeholder {
        font-size: 48px;
    }

    .card-content {
        padding: 20px 15px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}

/* Back Button Styles */
.back-button-container {
    padding: 20px 40px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #ed1b24;
    color: #ed1b24;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.back-button:hover {
    background-color: #ed1b24;
    color: #fff;
    transform: translateX(-3px);
}

.back-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Responsive back button */
@media (max-width: 768px) {
    .back-button-container {
        padding: 15px 20px;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

