/* --- Language Selector Dropdown --- */
.tpm-lang-selector {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    z-index: 999;
}

.tpm-lang-current {
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.tpm-lang-current:after {
    content: '';
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-bottom: 2px;
}

.tpm-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #eee;
    padding: 5px 0;
}

.tpm-lang-selector:hover .tpm-lang-dropdown {
    display: block;
}

.tpm-lang-dropdown a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    transition: background-color 0.2s;
}

.tpm-lang-dropdown a:hover {
    background-color: #f5f5f5;
}

/* --- Welcome Modal --- */
.tpm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.tpm-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.tpm-modal-content {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Fallback, should inherit */
}

.tpm-flag-icon {
    width: 40px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tpm-modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400; /* Elegant thin style */
    font-family: serif; /* More elegant look */
}

.tpm-modal-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.tpm-modal-question {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.tpm-btn-confirm {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.tpm-btn-confirm:hover {
    background-color: #333;
}

.tpm-link-other {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

/* --- Step 2: Manual Selection --- */
.tpm-step-2 {
    display: none;
    text-align: left;
}

.tpm-form-group {
    margin-bottom: 20px;
}

.tpm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.tpm-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.tpm-step-2 .tpm-modal-title {
    text-align: center;
}
