.kpt-tracker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kpt-header {
    text-align: center;
    margin-bottom: 30px;
}

.kpt-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 600;
}

.kpt-header p {
    color: #666;
    font-size: 1.1em;
}

.kpt-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.kpt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.kpt-form-group {
    display: flex;
    flex-direction: column;
}

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

.kpt-form-group input,
.kpt-form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.kpt-form-group input:focus,
.kpt-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.kpt-form-submit {
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
}

.kpt-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kpt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3);
}

.kpt-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.kpt-loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.kpt-captcha-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.kpt-captcha-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.kpt-captcha-section input {
    width: 150px;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    margin-right: 10px;
}

.kpt-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 10px;
}

.kpt-btn-secondary:hover {
    background: #5a6268;
}

/* Country search styles removed */

#kpt-dynamic-captcha {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

#kpt-dynamic-captcha label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin: 0;
}

.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.kpt-position-result {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
}

.kpt-result-header h3 {
    color: #155724;
    font-size: 1.8em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.kpt-position-display {
    font-size: 4em;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.kpt-search-details {
    color: #155724;
    font-size: 1.1em;
    margin: 15px 0;
    font-weight: 500;
}

.kpt-result-details {
    text-align: left;
    margin: 25px 0;
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(40,167,69,0.3);
}

.kpt-result-item {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(21,87,36,0.1);
    word-break: break-all;
}

.kpt-result-item:last-child {
    border-bottom: none;
}

.kpt-result-item strong {
    color: #155724;
    display: inline-block;
    min-width: 80px;
    margin-right: 10px;
}

.kpt-result-actions {
    margin-top: 25px;
}

.kpt-result-actions .kpt-gss-btn {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.kpt-result-actions .kpt-gss-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,124,186,0.4);
    color: white;
    text-decoration: none;
}

.kpt-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.kpt-no-results svg {
    color: #dc3545;
    margin-bottom: 20px;
}

.kpt-no-results h3 {
    color: #dc3545;
    margin: 20px 0 15px 0;
    font-size: 1.5em;
}

.kpt-no-results p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.kpt-no-results .kpt-gss-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
}

.kpt-no-results .kpt-gss-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.kpt-results-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.kpt-results-header h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.kpt-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.kpt-results-table th,
.kpt-results-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.kpt-results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpt-results-table tr:hover {
    background: #f8f9fa;
}

.kpt-position-badge {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.kpt-gss-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.kpt-gss-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.kpt-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.kpt-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.kpt-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.kpt-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.kpt-no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .kpt-form-grid {
        grid-template-columns: 1fr;
    }
    
    .kpt-tracker-container {
        padding: 15px;
    }
    
    .kpt-form {
        padding: 20px;
    }
    
    .kpt-results-table {
        font-size: 14px;
    }
    
    .kpt-results-table th,
    .kpt-results-table td {
        padding: 8px 12px;
    }
}
